Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fraction display missing characters on macOS #165

Open
ryanfb opened this issue May 2, 2024 · 4 comments
Open

Fraction display missing characters on macOS #165

ryanfb opened this issue May 2, 2024 · 4 comments

Comments

@ryanfb
Copy link
Member

ryanfb commented May 2, 2024

e.g. https://papyri.info/ddbdp/p.petaus;;11 with <num value="2/3">𐅷</num>, we now get a missing glyph box rendered in Firefox/Safari on latest macOS. Chrome seems fine. I believe this worked across all browsers before, so I'm not sure if it's upstream font stack handling that broke it.

@samosafuz
Copy link
Member

This works fine in my Firefox (125.0.3) on macOS Sonoma (14.4.1):
Screenshot 2024-05-03 at 3 09 10 PM

But, you're right, on Safari (17.4.1) it's banjaxed:
Screenshot 2024-05-03 at 3 10 01 PM

@ryanfb
Copy link
Member Author

ryanfb commented May 6, 2024

Interestingly, I've tried with the same Firefox/macOS on two different M1/M2 macs in private windows to disable any local extensions, and still see the glyph render miss. If you right click a 2/3 fraction in Firefox and do "Inspect this element", it should bring up an inspector window where on the far right pane a "fonts" tab is selectable that should give you a "fonts used" view for the element (see here). When I do this in Firefox, I get just the first font, Lucida Grande. I suspect you may have another non-default font installed on your system in the font-family which gets picked up by Firefox—but for some reason not Safari?

Another development: I checked the font rendering for Chrome on the system I initially used to report this, and it's using Cardo to render the fraction; after checking my system fonts I have Cardo installed on that system. Not sure why Safari or Firefox aren't using it. I checked a different machine which doesn't have Cardo installed, and Chrome also renders a missing glyph box on that system. So it seems like this may be related to something with macOS system font handling changing or becoming subtly broken (i.e. I really see no reason why Safari/Firefox don't use the installed Cardo font but Chrome does).

@ryanfb ryanfb changed the title Fraction display missing characters in Firefox/Safari Fraction display missing characters on macOS May 6, 2024
@hcayless
Copy link
Member

hcayless commented May 6, 2024

On mine, it's falling through to IFAO-Grec Unicode. We should investigate setting up web fonts for more consistent rendering. I'm a little worried about coverage for the Ancient Greek Numbers and Ancient Symbols ranges in those though...after a little investigation, it looks like Noto Sans Symbols 2 (one of the Google fonts) supports them. It's the first one I've found that does.

@jcowey
Copy link
Member

jcowey commented May 6, 2024

Noto Sans may well be good to have high on the list of default fonts for displaying Demotic letters with underdots and underlines etc.

Have not checked everything yet for Demotic, but was looking promising.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants