-
Notifications
You must be signed in to change notification settings - Fork 335
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
document how to troubleshoot Typst fonts, and Typst requiring exact font family name #11278
Comments
It's not a bug, but it's definitely a problem we should be aware of. I guess we should document "troubleshooting Typst fonts" somewhere. You can see that Quarto and Typst are "working" in the sense of "expending effort" because that's not a monospace font, and you would get a monospace font if you didn't specify anything. If you render using Typst 0.12 you will get helpful warnings:
Then list the available fonts quarto typst fonts --ignore-system-fonts --variants --font-path .quarto/typst-font-cache/ (The helpful This outputs:
And it seems that Google Fonts allows a fuzzy search, but Typst does not. Spelling out the font family for Typst works:
|
monospace-*
doesn't seem to inherit from monospace
in typst
On second thought, we might need to automate the discovery of the full family name, since https://fonts.google.com/specimen/Sono does not say "Sono Extralight Monospace" anywhere. |
Update: I generated 41 test QMDs from the monospace font list at https://www.notebookandpenguin.com/list-of-google-fonts/#monospace-google-font-list and only encountered one font that failed due to inconsistent naming, "Nova Mono" needs to be "NovaMono". I think it was bad luck with Sono, so I'll just document this for now. It would not be hard to implement an error or warning with "did you mean..." if this comes up frequently. |
fixes quarto-dev/quarto-cli#11083 fixes quarto-dev/quarto-cli#11278 addresses quarto-dev/quarto-cli#11683 addresses quarto-dev/quarto-cli#11616 (reply in thread) just a draft - some of this stuff might belong better elsewhere
fixes quarto-dev/quarto-cli#11083 fixes quarto-dev/quarto-cli#11278 addresses quarto-dev/quarto-cli#11683 addresses https://github.com/quarto-dev/quarto-cli/discussions/11616#discussioncomment-11473859 just a draft - some of this stuff might belong better elsewhere (cherry picked from commit 1f34e20)
fixes quarto-dev/quarto-cli#11083 fixes quarto-dev/quarto-cli#11278 addresses quarto-dev/quarto-cli#11683 addresses quarto-dev/quarto-cli#11616 (reply in thread) just a draft - some of this stuff might belong better elsewhere (cherry picked from commit 1f34e20)
Bug description
The docs suggest
monospace-inline
andmonospace-block
should inherit frommonospace
, but whenformat: typst
, settingmonospace: family
doesn't seem to change the family in inline or block code.Steps to reproduce
Expected behavior
Code in blocks and inline is Sono as though:
Actual behavior
Code inline and in blocks is not Sono:
Your environment
Quarto check output
The text was updated successfully, but these errors were encountered: