jenskutilek / FiraSystemFontReplacement

Modified version of the Fira Sans fonts to replace the default system font on macOS
750 stars 23 forks source link

doesn't work in macOS Catalina(10.15) #53

Open jiyzhang opened 5 years ago

jiyzhang commented 5 years ago

I installed this package after upgrading to macOS Catalina, the system font didn't change.

colercoast3r commented 5 years ago

Can confirm this isn't working in Catalina.

jenskutilek commented 5 years ago

I don't have access to the Catalina beta version yet. Maybe the replacement font can be modified to work again, but it is also possible that Apple closed the "loophole" the fonts use to be recognized as system fonts.

irvanmohamad commented 5 years ago

@jenskutilek I've tried, but not 100% worked. I omitted the word Text for the System Font. These are the lines that I changed:

In glyphs_build.py:

and also in text_roman.py:


And I didn't touch these lines:

In glyphs_build.py:

instance.name = styleName
instance.customParameters["postscriptFontName"] = psFontName
if styleName == "Regular":
    instance.customParameters["postscriptFullName"] = "System Font"
else:
    instance.customParameters["postscriptFullName"] = "System Font %s" % styleName
instance.customParameters["fileName"] = fileName

and also in postprocess.py:

name.setName(u"System Font", 4, 0, 3, 0)
name.setName(u".SF NS", 1, 1, 0, 0)
name.setName(u"System Font", 1, 3, 1, 0x409)
name.setName(u"Regular", 2, 1, 0, 0)
name.setName(u"System Font", 4, 3, 1, 0x409)
name.setName(u".SFNS", 6, 3, 1, 0x409)

All the light, medium, semibold, bold, and heavy styles seem to work, but somehow the regular style (that is used by most of the macOS UI) doesn't work at all.


Download Apple original System Font file in /System/Library/Fonts/SFNS.ttf : SFNS.ttf.zip

The result of partial modification:

Screen Shot 2019-07-09 at 06 26 32
jenskutilek commented 5 years ago

Interesting, thank you for your research!

jenskutilek commented 5 years ago

It looks like the old split of the fonts into Display and Text variants is gone in the new version. They are all unified in one file now, which has variation axes for "Weight" (as before), "Optical size", "GRAD", and "YAXS". The "GRAD" axis adds weight without changing the width of letters, while the "YAXS" axis adds weight only in the vertical direction.

It gets increasingly difficult to find a matching replacement font which should ideally also have all of these variations included.

ghost commented 4 years ago

+1

xujc commented 4 years ago

+1

I just upgraded to macOS Catalina (10.15), and now I can't replace the system font with this package. Should I knew this, I won't do the upgrade at all. So sad... The default font is unbearable. Wish you can update the package for Cataline.

Fohrbach commented 4 years ago

I agree with jingchen-xu an others: the default font on Catalina is a pain in the ass! Jens, you are the last hope for people who suffer from bad typografy! Looking forward for updated FiraSystemFontReplacement. Thanks a lot in advance! (Never used so many exclamation marks in such a short text!)

colercoaster commented 4 years ago

I'd be happy to send money your way if this could be fixed for Catalina. I love this tweak.

Fohrbach commented 4 years ago

@colercoast3r Okay, I would be in also …

jiyzhang commented 4 years ago

@colercoast3r @Fohrbach Me too

Wielosmakowy commented 4 years ago

+1

morrisoz commented 4 years ago

+1

cuddeford commented 4 years ago

I’m also interested in this

Redeyes717 commented 4 years ago

we are really missing Fira fonts in Catalina.. I hope someone can help to solve this issue..

stickyburn commented 3 years ago

+1 for this request. Switching back to Mac OS makes me realize how helpless Apple users really are...

Redeyes717 commented 3 years ago

@jenskutilek I've tried, but not 100% worked. I omitted the word Text for the System Font. These are the lines that I changed:

In glyphs_build.py:

* `font.familyName = ".SF NS"`. Previously it was `font.familyName = ".SF NS Text"`

and also in text_roman.py:

* `weights[0], "Light", ".SFNS-Light", "SystemFont-Light", 300`. Previously it was `".SFNSText-Light", "SystemFontText-Light"`

* `weights[1], "Regular", ".SFNS", "SystemFont-Regular", 400`. Previously it was `".SFNSText", "SystemFontText-Regular"`

* `weights[5], "Medium", ".SFNS-Medium", "SystemFont-Medium", 500`. Previously it was `".SFNSText-Medium", "SystemFontText-Medium"`

* `weights[6], "Semibold", ".SFNS-Semibold", "SystemFont-Semibold", 600`. Previously it was `".SFNSText-Semibold", "SystemFontText-Semibold"`

* `weights[7], "Bold", ".SFNS-Bold", "SystemFont-Bold", 700`. Previously it was `".SFNSText-Bold", "SystemFontText-Bold"`

* `weights[11], "Heavy", ".SFNS-Heavy", "SystemFont-Heavy", 800`. Previously it was `".SFNSText-Heavy", "SystemFontText-Heavy"`

And I didn't touch these lines:

In glyphs_build.py:

instance.name = styleName
instance.customParameters["postscriptFontName"] = psFontName
if styleName == "Regular":
    instance.customParameters["postscriptFullName"] = "System Font"
else:
    instance.customParameters["postscriptFullName"] = "System Font %s" % styleName
instance.customParameters["fileName"] = fileName

and also in postprocess.py:

name.setName(u"System Font", 4, 0, 3, 0)
name.setName(u".SF NS", 1, 1, 0, 0)
name.setName(u"System Font", 1, 3, 1, 0x409)
name.setName(u"Regular", 2, 1, 0, 0)
name.setName(u"System Font", 4, 3, 1, 0x409)
name.setName(u".SFNS", 6, 3, 1, 0x409)

All the light, medium, semibold, bold, and heavy styles seem to work, but somehow the regular style (that is used by most of the macOS UI) doesn't work at all.

Download Apple original System Font file in /System/Library/Fonts/SFNS.ttf : SFNS.ttf.zip

The result of partial modification:

Screen Shot 2019-07-09 at 06 26 32

dear irvanmohamad would you please share your modified installer?

Andrea

shiypc commented 3 years ago

@jenskutilek I've tried, but not 100% worked. I omitted the word Text for the System Font. These are the lines that I changed:

In glyphs_build.py:

  • font.familyName = ".SF NS". Previously it was font.familyName = ".SF NS Text"

and also in text_roman.py:

  • weights[0], "Light", ".SFNS-Light", "SystemFont-Light", 300. Previously it was ".SFNSText-Light", "SystemFontText-Light"
  • weights[1], "Regular", ".SFNS", "SystemFont-Regular", 400. Previously it was ".SFNSText", "SystemFontText-Regular"
  • weights[5], "Medium", ".SFNS-Medium", "SystemFont-Medium", 500. Previously it was ".SFNSText-Medium", "SystemFontText-Medium"
  • weights[6], "Semibold", ".SFNS-Semibold", "SystemFont-Semibold", 600. Previously it was ".SFNSText-Semibold", "SystemFontText-Semibold"
  • weights[7], "Bold", ".SFNS-Bold", "SystemFont-Bold", 700. Previously it was ".SFNSText-Bold", "SystemFontText-Bold"
  • weights[11], "Heavy", ".SFNS-Heavy", "SystemFont-Heavy", 800. Previously it was ".SFNSText-Heavy", "SystemFontText-Heavy"

And I didn't touch these lines:

In glyphs_build.py:

instance.name = styleName
instance.customParameters["postscriptFontName"] = psFontName
if styleName == "Regular":
    instance.customParameters["postscriptFullName"] = "System Font"
else:
    instance.customParameters["postscriptFullName"] = "System Font %s" % styleName
instance.customParameters["fileName"] = fileName

and also in postprocess.py:

name.setName(u"System Font", 4, 0, 3, 0)
name.setName(u".SF NS", 1, 1, 0, 0)
name.setName(u"System Font", 1, 3, 1, 0x409)
name.setName(u"Regular", 2, 1, 0, 0)
name.setName(u"System Font", 4, 3, 1, 0x409)
name.setName(u".SFNS", 6, 3, 1, 0x409)

All the light, medium, semibold, bold, and heavy styles seem to work, but somehow the regular style (that is used by most of the macOS UI) doesn't work at all.

Download Apple original System Font file in /System/Library/Fonts/SFNS.ttf : SFNS.ttf.zip

The result of partial modification:

Screen Shot 2019-07-09 at 06 26 32

can you release this version?

gcbw commented 3 years ago

@irvanmohamad pls share your fork. i can use it as a basis to further experimentation.

@jenskutilek is there a good resource/doc/tool to understand better your comment on required variations that must be included.

Thank you all.

Redeyes717 commented 3 years ago

@irvanmohamad pls share your fork. i can use it as a basis to further experimentation.

@jenskutilek is there a good resource/doc/tool to understand better your comment on required variations that must be included.

Thank you all.

@gcbw thank you! it is time to give this project a new light again. I hope the devs will answer soon.

Redeyes717 commented 3 years ago

@jenskutilek please give all of us a now hope for firafont on BigSur....