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
Font ignored + "current font does not support math" #97
This is a very interesting looking project, and I was hoping to start using it for some tasks locally. I downloaded it off the releases page and can run it from the command line. I'm running ubuntu 22.04 LTS.
For some reason, the default font is a monospace one that I don't recognise, a #set text() call to set font does not seem to be working, and including any math produces the following error. The font is installed on my system (included in the screenshot is the fonts page preview).
The math font is a separate one called "New Computer Modern Math" and should be under assets/fonts. Though, they are considering just embedding some default fonts into the binary.
I have pushed a commit that embeds the standard fonts for text, math, and code by default. You can turn that off with a feature flag in the cli crate. It would be great if you could let me know if it works for you now.
Reacted by Kevin K., Apoorva Lal, Mikko and Channing Walton
It does; thanks for the prompt update!
I also discovered the typst --fonts command and system fonts + fonts in ~/.fonts show up now and work as expected.
Activity
Andriamanitra commentedon Mar 21, 2023
I also immediately ran into this error after building from source and trying the example from README.md.
I think this error message could be improved by
In the longer term it would be nice to have proper error codes and something like Rust's error index with lengthier explanations and examples.
xkevio commentedon Mar 21, 2023
The math font is a separate one called "New Computer Modern Math" and should be under
assets/fonts. Though, they are considering just embedding some default fonts into the binary.laurmaedje commentedon Mar 21, 2023
I have pushed a commit that embeds the standard fonts for text, math, and code by default. You can turn that off with a feature flag in the cli crate. It would be great if you could let me know if it works for you now.
apoorvalal commentedon Mar 21, 2023
It does; thanks for the prompt update!
I also discovered the
typst --fontscommand and system fonts + fonts in~/.fontsshow up now and work as expected.