You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Sequoia fonts: no control


This is what it shows in Safari


And:


as it appears in Firefox (correctly).


There is no way to change the appearance of text in Safari in 15.1? A flaw; something is broken in the design/code.


This message is for Apple engineers.

MacBook Pro 14″

Posted on Nov 3, 2024 3:05 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 3, 2024 10:29 PM

jinet wrote:

Here is a link to the web page info from Firefox

https://docs.google.com/document/d/1tIzCi-1zcd76yzxHRfxsSJNP_TNyDpHhtfvvY1uC8W4/edit?usp=sharing

I was able to reproduce what you are seeing from that. The stylesheets are publicly accessible, so I was able to hack together an HTML file with the text, filtering through Google Lens to extract the actual Greek text.


The cause is an error in the CSS stylesheets from the site. In the "tlg.css" stylesheet, they define a class of "greektext" with a font-family value of "default". The problem is that there is no "default" font-family. You can review the CSS specification of font-family yourself.


So, what happens is that the browser looks for a font literally named "default" and doesn't find it. The CSS specification mentions that CSS developers should always include generic fallback font if a more specific font isn't available. That isn't done here. Since neither browser can find the font named "default", the font they display is implementation defined. That's a fancy way of saying "good luck!".


Safari seems to use the internal PingFang font to render in this case. It seems to recognize "default" and does something special with that name. If I specific a different, but still invalid, font name, then it uses "Times".


The solution is to properly specify the font in the CSS file. A more appropriate value would be something like "serif" (without the quotes).

14 replies
Question marked as Top-ranking reply

Nov 3, 2024 10:29 PM in response to jinet

jinet wrote:

Here is a link to the web page info from Firefox

https://docs.google.com/document/d/1tIzCi-1zcd76yzxHRfxsSJNP_TNyDpHhtfvvY1uC8W4/edit?usp=sharing

I was able to reproduce what you are seeing from that. The stylesheets are publicly accessible, so I was able to hack together an HTML file with the text, filtering through Google Lens to extract the actual Greek text.


The cause is an error in the CSS stylesheets from the site. In the "tlg.css" stylesheet, they define a class of "greektext" with a font-family value of "default". The problem is that there is no "default" font-family. You can review the CSS specification of font-family yourself.


So, what happens is that the browser looks for a font literally named "default" and doesn't find it. The CSS specification mentions that CSS developers should always include generic fallback font if a more specific font isn't available. That isn't done here. Since neither browser can find the font named "default", the font they display is implementation defined. That's a fancy way of saying "good luck!".


Safari seems to use the internal PingFang font to render in this case. It seems to recognize "default" and does something special with that name. If I specific a different, but still invalid, font name, then it uses "Times".


The solution is to properly specify the font in the CSS file. A more appropriate value would be something like "serif" (without the quotes).

Sequoia fonts: no control

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.