Repository navigation
Closed
Labels
cliAbout Typst's command line interface.feature requestNew feature or requesttextRelated to the text category, which is all about text handling, shaping, etc.
Description
Description
Allowing the typst fonts subcommand to also display the full filename path of each registered font is extremely helpful for debugging, for several reasons.
For prior/example code – tinymist has that functionality about around here – https://github.com/Myriad-Dreamin/tinymist/blob/51f9cdec81a8eeb20fa8cb30538b251ac8928b64/tools/editor-tools/src/features/font-view/components/font-list.ts#L39
Use Case
Allowing typst fonts to show the full font file path helps debugging by:
- Disambiguation: Distinguishes between fonts with the same family name.
- Source clarity: Reveals whether a font came from system, .local, or custom directories.
- Troubleshooting: Identifies why the the particular font was loaded.
- Cross-platform checks: Confirms which file is picked up on different systems.
Example
i have the following output from typst 0.13.1, and dont know what is going on:
Clarendon Sys
- Style: Italic, Weight: 500, Stretch: FontStretch(1000)
- Style: Italic, Weight: 400, Stretch: FontStretch(1000)
- Style: Italic, Weight: 400, Stretch: FontStretch(1000)
- Style: Normal, Weight: 300, Stretch: FontStretch(1000)
- Style: Italic, Weight: 300, Stretch: FontStretch(1000)
- Style: Italic, Weight: 300, Stretch: FontStretch(1000)
- Style: Normal, Weight: 500, Stretch: FontStretch(1000)
- Style: Italic, Weight: 700, Stretch: FontStretch(1000)
- Style: Normal, Weight: 700, Stretch: FontStretch(1000)
- Style: Italic, Weight: 800, Stretch: FontStretch(1000)
- Style: Italic, Weight: 500, Stretch: FontStretch(1000)
- Style: Italic, Weight: 800, Stretch: FontStretch(1000)
- Style: Italic, Weight: 700, Stretch: FontStretch(1000)
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
- Style: Normal, Weight: 500, Stretch: FontStretch(1000)
- Style: Normal, Weight: 300, Stretch: FontStretch(1000)
- Style: Normal, Weight: 800, Stretch: FontStretch(1000)
- Style: Normal, Weight: 700, Stretch: FontStretch(1000)
- Style: Normal, Weight: 800, Stretch: FontStretch(1000)
Reasoning
the addition might be non-invasive and non- api breaking as a quick-win to be included in the next release (ie. 0.14 ?)
Reacted by Ilia, Dorian Bourgeoisat, Liara, Derived Cat, Y.D.X., th1j5 and David
Metadata
Metadata
Assignees
Labels
cliAbout Typst's command line interface.feature requestNew feature or requesttextRelated to the text category, which is all about text handling, shaping, etc.
Activity
[-]allow fonts subcommand to also display the full filename path of the registered font[/-][+]Allow fonts subcommand to also display the full filename path[/+]terefang commentedon Oct 25, 2025
@laurmaedje
any chances that this could become a commited feature of the next release ? (eg. 0.14.1 ?)
terefang commentedon Nov 18, 2025
any chances that will get into 0.15 ?
YDX-2147483647 commentedon Nov 19, 2025
If this feature is to be implemented, I suggest also making it support JSON output.
Combined with shell scripts and other font tools, it will make a few cool practical things possible. Say, list all fonts that support the OpenType
supsfeature.terefang commentedon Nov 19, 2025
you are my man!
westNeighbor commentedon Nov 24, 2025
Extremely helpful to have this feature! I'm looking for the reflection font name -> font file for
typst, but now luck till now.