-
Notifications
You must be signed in to change notification settings - Fork 819
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
Rework font fallbacks #4658
Rework font fallbacks #4658
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to support such seldom characters, it makes IMO sense to re-introduce also Unifont again, which has a big coverage
Do you have some examples of glyphs in unifont that we don't have coverage of?
Do you have any suggestions of good locations to review this with?
There is a good graphical coverage table for Noto: https://notofonts.github.io/overview/ (The site takes some seconds to load…) Everything that is red (and also everything that is green, but where we don't include the font in openstreetmap-carto because it's a dead script) is not covered. Another question is, however, if these code points are actually used in the OSM database.
Honestly, no. I didn’t manage to make an overpass query to find some occurrences. For #4644 even the bug reporter could not come up with a real usage in OSM. And also for #4653 I did not find data. (I searched for “name:ff” in the hope to find some node that also has its name tag in this language, and maybe in Adlam script. No success.) It seems that Unicode support of Overpass practically does not exist, at least for regular expressions. Not only everything beyond the BMP does not work, but also Arabic letters within the BMP let the regular expression fail. The tests that I've done locally have been done with mock-up data. |
6a9222b
to
e60dc42
Compare
I've added a commit that removes the font-directory declaration, fixing #4667. |
9d28e38
to
e60dc42
Compare
Okay. I've removed this commit. |
I'm running a query on my DB to look for names with characters outside Noto's coverage range, not counting CJK which we expect to be covered by Hanazono. I have no concerns except the unifont, and want to validate if this is an actual issue. |
Okay. If I understand you correctly, you think…
I chose Noto Nastaliq Urdu because it is at least in the same font family as our default fonts, so installing the font with script was trivial, and I was hoping for at least some similarities in design, and ultimately it is just a fallback font and not a default font. However, I get your point that the fallback font has a very different style than the default font, which is visually intrusive. I will wait for the results of @pnorman's query before moving on. |
I did not find any characters. |
e60dc42
to
ad68110
Compare
Okay. It might have been a bad idea of mine to put the Arabic script issue and the other changes in the same PR. That's why I removed the part about the Arabic script, which we can further discuss separately in #4644. Here thus remain the undisputed changes. |
Fixes #4653
Adds fallback fonts and simplifies the font groups.
Changes proposed in this pull request: