which font is used for timeline and meter numbers?

Help for Audacity on macOS.
Forum rules
ImageThis forum is for Audacity on macOS 10.4 and later.
Please state which version of macOS you are using,
and the exact three-section version number of Audacity from "Audacity menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
practik
Posts: 12
Joined: Wed Mar 01, 2017 4:56 pm
Operating System: macOS 10.15 Catalina or later

which font is used for timeline and meter numbers?

Post by practik » Wed Mar 01, 2017 5:13 pm

I've just installed Audacity 2.1.2 from the .dmg installer on a Mac running OS 10.12.2. On launching for the first time, I see that I must have uninstalled a font Audacity was expecting to use. Specifically, it's the font used for the timeline and the recording and playback meters, as well as the splash screen and the about screen, and maybe other parts of the app too. Here's a screenshot:
AudacityScreenshot.jpg
AudacityScreenshot.jpg (87.68 KiB) Viewed 856 times
Can anyone tell me which font I need to reinstall on my system?

kozikowski
Forum Staff
Posts: 69384
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: which font is used for timeline and meter numbers?

Post by kozikowski » Wed Mar 01, 2017 5:20 pm

I can look it up, but it's scary you found a need to remove system fonts. Macs tend to be tightly integrated. Mess with QuickTime services, for example, and you can turn a Mac into rubble.

Koz

practik
Posts: 12
Joined: Wed Mar 01, 2017 4:56 pm
Operating System: macOS 10.15 Catalina or later

Re: which font is used for timeline and meter numbers?

Post by practik » Wed Mar 01, 2017 5:30 pm

Thanks, Koz. I haven't removed any system fonts, so I was surprised to see all those question marks. I just checked an older machine (OS 10.8.5) that has Audacity installed, and it seems to be using Lucida Grande for the timeline etc. I _definitely_ haven't removed that one from this computer!

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: which font is used for timeline and meter numbers?

Post by steve » Wed Mar 01, 2017 6:01 pm

Old versions of OS X used Lucida Grande as the default system font.
More recent versions use Helvetica Neue or San Francisco.

In the Audacity code, the font is described as "wxFONTFAMILY_SWISS", which the WxWidgets documentation says resolves to "wxNORMAL_FONT" , which is the default system GUI font. I'm not sure if that means the default system GUI font of the system that Audacity is running on, or the system that Audacity was compiled on. Either way, it looks like you've screwed up your system GUI fonts. I'd suggest that you check that all three of the fonts listed above are installed.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

practik
Posts: 12
Joined: Wed Mar 01, 2017 4:56 pm
Operating System: macOS 10.15 Catalina or later

Re: which font is used for timeline and meter numbers?

Post by practik » Wed Mar 01, 2017 6:30 pm

Thanks, Steve – that gave me the solution.

As soon as I submitted my last post I realized it's not true that I haven't removed any system fonts, if by "system fonts" we mean fonts in /System/Library/Fonts. I have removed several from there that aren't actually critical to the system (prime example: Apple Braille), but I know better than to remove the three you mention.

One of those noncritical fonts I did remove was Helvetica (not Helvetica Neue), and as soon as I saw "wxFONTFAMILY_SWISS" in your post I figured that had to be the one Audacity wanted. I reinstalled it, and sure enough, Audacity's timeline etc. are now displaying correctly.

Steve, where in the WxWidgets documentation did you see that wxFONTFAMILY_SWISS is supposed to resolve to the default system GUI font? Was it here? I ask because I'd like to file a bug report with them. Helvetica has never been the default system GUI font on the Mac; wxFONTFAMILY_SWISS should be resolving to Helvetica Neue or San Francisco on my machine, as you say.

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: which font is used for timeline and meter numbers?

Post by steve » Wed Mar 01, 2017 7:23 pm

Audacity is currently built with WxWidgets 3.0.2

From: http://docs.wxwidgets.org/3.0.2/interfa ... d41da30bb5
wxFont* wxSWISS_FONT
A font identic to wxNORMAL_FONT except for the family used which is wxFONTFAMILY_SWISS.

It gets a bit tricky determining exactly which font will be used on each platform, because Audacity specifies fall-back alternatives, and uses font families so as to give broad coverage. Then WxWidgets does a similar thing in its use of font families.

The enumerator "wxSWISS" may resolve to wxNORMAL_FONT (http://docs.wxwidgets.org/3.0.2/interfa ... b1e6b854b1) or to wxFONTFAMILY_SWISS, which is loosley defined as "A sans-serif font" (http://docs.wxwidgets.org/3.0.2/interfa ... f016c44191)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

practik
Posts: 12
Joined: Wed Mar 01, 2017 4:56 pm
Operating System: macOS 10.15 Catalina or later

Re: which font is used for timeline and meter numbers?

Post by practik » Wed Mar 01, 2017 10:49 pm

Hmm. That makes it more clear that there is a problem (seems like Audacity ought to be able to fall back to some other font, such as Helvetica Neue, if it can't find Helvetica) but less clear whether the problem is with Audacity or with wxWidgets.

Steve, when you say that Audacity specifies fallbacks, and then wxWidgets does a similar thing, do you mean that those are consecutive steps in a single process? Or do you mean that the font is determined by Audacity in some parts of the UI and by wxWidgets in other parts?

And when you say that "wxSWISS" may resolve to two different parameters, do you have any insight as to when it resolves to one and when it resolves to the other?

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: which font is used for timeline and meter numbers?

Post by steve » Wed Mar 01, 2017 11:37 pm

practik wrote:Hmm. That makes it more clear that there is a problem (seems like Audacity ought to be able to fall back to some other font, such as Helvetica Neue, if it can't find Helvetica) but less clear whether the problem is with Audacity or with wxWidgets.
or a problem specific to your system?
I'm not saying it is, but of the tens of thousands of posts to this forum, this is the first time I recall seeing this problem.
practik wrote:do you have any insight as to when it resolves to one and when it resolves to the other?
No I don't. I just took a quick look at the code (specifically this bit) to see where the meters were getting their font selection. I don't know a lot about how Macs handle fonts (my usual machine is Linux), so I'm not well placed to diagnose the problem further.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

practik
Posts: 12
Joined: Wed Mar 01, 2017 4:56 pm
Operating System: macOS 10.15 Catalina or later

Re: which font is used for timeline and meter numbers?

Post by practik » Thu Mar 02, 2017 12:08 am

I doubt the problem is specific to my system. The reason I just installed Audacity is because I just did a clean OS install, so apart from pruning the fonts I haven't done much on this machine yet, and there's not much else on here that could be factoring into the equation. I'm not surprised it's a rare problem; most Mac users don't (have any reason to) remove Helvetica.

I'll dig around in the code and see if I can figure anything out. Thanks for your help, Steve!

Post Reply