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
Allow documents and modules to register artificial or pre-configured font-families #5455
Put your OTF files under paths listed in TYPST_FONT_PATHS, and the weight and style info will be recognized by Typst. It should work out of box. Why bother adding new builtin functions?
changed the title [-][Feature Request] allow documents and modules to register artificial or pre-configured font-families[/-][+]Allow documents and modules to register artificial or pre-configured font-families[/+]on Nov 24, 2024
I don't have any input right now since I have a lot of things on my plate already at the moment. But we acknowledge that the font handling in Typst leaves stuff to be desired right now and will take this into account when it becomes a focus.
Activity
peng1999 commentedon Nov 24, 2024
Put your OTF files under paths listed in TYPST_FONT_PATHS, and the weight and style info will be recognized by Typst. It should work out of box. Why bother adding new builtin functions?
[-][Feature Request] allow documents and modules to register artificial or pre-configured font-families[/-][+]Allow documents and modules to register artificial or pre-configured font-families[/+]terefang commentedon Nov 24, 2024
@peng1999 while this is true, stylistic variants are currently (0.12.0) not selectable within families as was already discussed on discord.
also for artistic purpose one might artificially assemble either a lighter or heavier family variation, as well as an old-style-figures or small caps.
eg. one where medium is used for normal weight and extra-bold for bold weight.
yes, i know osf and sc should be typographic features within a font file, but the reality tells us otherwise.
terefang commentedon Jan 13, 2025
any thoughts on this ?
from a technical point i do agree with @peng1999 but from an artistical point i have to strongly disagree.
not everything that can be technically auto-solved may be artistically sound.
laurmaedje commentedon Jan 13, 2025
I don't have any input right now since I have a lot of things on my plate already at the moment. But we acknowledge that the font handling in Typst leaves stuff to be desired right now and will take this into account when it becomes a focus.
terefang commentedon Jan 24, 2025
any updates on this ? any estimations when the focus becomes available ?
laurmaedje commentedon Jan 24, 2025
Please don't repeatedly ask for updates. I can't yet say when I will have time to focus on the font stuff, hence my previous comment.
terefang commentedon Jan 24, 2025
i dont want to sound rude.
having no updates might look like the issue was forgotten or ignored.
other projects do some milestone planning and assignment.
i would not ping on a regular basis if a workaround would be available but also #2098 seems to be in limbo for now.
terefang commentedon Feb 26, 2025
just referencing related chat on discord
https://discord.com/channels/1054443721975922748/1184433451554840636/1338571039772512277
laurmaedje commentedon Mar 7, 2025
I just realized that this is more or less a duplicate of #2469.