You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add warning when a glyph isn't found in any font #5137
diagnosticsImprovements to compiler errorsfeature requestNew feature or requesttextRelated to the text category, which is all about text handling, shaping, etc.
Note: Currently, there are no warnings when fallback is disabled and no glyphs are found. Instead, your text shows up in the form of "tofus": Small boxes that indicate the lack of an appropriate glyph. In the future, you will be able to instruct Typst to issue warnings so you know something is up.
I didn't find an open issue for this, so here is one.
One thing that should be discussed is what would be the default behavior and how to toggle/enable/disable the warning (in the CLI and/or via #4459).
Use Case
Improved UX. You can just simply miss the fact that some glyphs aren't found without a warning.
Reacted by Andrew Voynov, Frank Polasek Dugan III, Philipp Niedermayer and Robin
Hmm, I guess that's a good point. If a user explicitly disables fallback fonts, then they probably don't want to see the warnings. But maybe in some rare cases the warnings are still desired.
diagnosticsImprovements to compiler errorsfeature requestNew feature or requesttextRelated to the text category, which is all about text handling, shaping, etc.
Activity
Andrew15-5 commentedon Oct 5, 2024
I'm on the "warning by default" train. I think it can be disabled via CLI flag or a future global warning suppression.
Also want to note that a hint can be added in case
fallback: falseor--ignore-system-fontsis used. Something likeThis is what I would expect in #5134, for example.
istudyatuni commentedon Oct 5, 2024
I think it makes sense when
fallback: true, but not when it'sfalseAndrew15-5 commentedon Oct 5, 2024
Hmm, I guess that's a good point. If a user explicitly disables fallback fonts, then they probably don't want to see the warnings. But maybe in some rare cases the warnings are still desired.
istudyatuni commentedon Oct 5, 2024
Maybe make it
by default with the ability to override (when the warning system will be implemented)