Ticket UUID: | 90d555e0880b3413563a6335c2c39b3fb57f25da | |||
Title: | Font selected isn't right for Helvetica Neue Bold | |||
Type: | Bug | Version: | core-8-6-branch | |
Submitter: | h1rag4mi | Created on: | 2019-11-12 08:33:37 | |
Subsystem: | 45. Aqua Fonts | Assigned To: | nobody | |
Priority: | 5 Medium | Severity: | Cosmetic | |
Status: | Closed | Last Modified: | 2019-11-17 17:32:25 | |
Resolution: | Fixed | Closed By: | marc_culler | |
Closed on: | 2019-11-17 17:32:25 | |||
Description: |
On macOS Catalina the font '{{Helvetica Neue} 16 bold}' shows as Helvetica Neue Condensed Bold, not as it used to on Mojave, Helvetica Neue Bold. | |||
User Comments: |
marc_culler (claiming to be Marc Culler) added on 2019-11-17 17:32:25:
I am closing this ticket, even though the fix has not been confirmed. I attached a screenshot of the window produced by the test script on Catalina. It is the same as the Mojave screenshot. And I don't think adding the call to [NSFontManager convertFont] is likely to cause a crash. marc_culler (claiming to be Marc Culler) added on 2019-11-15 20:51:03: This appears to be a bug in Apple's NSFontManager, making it the second bug in NSFontManager that appeared in Catalina to create problems for Tk. The first one was reported in ticket 855049e799. What is happening here is that Tk is requesting a font in the "Helvetica Neue" family with the traits NSBoldFontMask|NSUnitalicFontMask. It is receiving a font in that family with the two requested traits, but also an additional trait NSCondensedFontMask. I was able to workaround the bug by calling nsFont = [[NSFontManager sharedFontManager] convertFont:nsFont toNotHaveTrait:~traits];which asks the font manager to remove all traits that were not requested. I have committed this fix to the branch bug-90d555e088. Please confirm that this fixes the problem without creating new problems. |
Attachments:
- AfterBugfix.png [download] added by marc_culler on 2019-11-17 17:26:29. [details]
- helvetica_neue_test.tcl [download] added by h1rag4mi on 2019-11-12 08:34:21. [details]
- Helvetica_Neue_Bold-Catalina.png [download] added by h1rag4mi on 2019-11-12 08:34:12. [details]
- Helvetica_Neue_Bold-Mojave.png [download] added by h1rag4mi on 2019-11-12 08:34:00. [details]