-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Can't load Material Design font because of missing missing glyph #3526
Comments
See discussion in google/material-design-icons#1600. It looks like glyph #0 is called .notdef and is supposed to serve as the glyph for missing glyphs. I'll see if I can update epaint to know about this. |
I tried reading the code, and it looks like |
I've attached MaterialIcons-Regular.ttf.zip so you don't have to download that big zip to repro the bug. |
Same behavior with MaterialSymbolsOutlined[FILL,GRAD,opsz,wght].ttf. |
I stumbled on the same bug, well, not necessiarly a bug, anyway, here's my workaround:
|
MaterialIcons-Regular.ttf
located in this giant zip.Failed to find replacement characters '◻' or '?'
that originates from epaint-0.23.0/src/text/font.rs:364:17.This is the code that I used to load the font file:
and this is an excerpt from the egui/epaint font.rs file:
I think that this font family represents an edge case, because it's icons rather than letters/numbers/symbols, which means that nobody will ever use this font without knowing exactly which code points to use, which means that the concept of a replacement glyph shouldn't apply.
Clearly, it would have been better if the authors of this font file had included a glyph for the white medium square, but since they didn't, and I'd like to use the font file as-is, I don't have a good workaround at this point.
The text was updated successfully, but these errors were encountered: