Skip to content

Allow fonts subcommand to also display the full filename path #6943

Closed

Description

@terefang

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 ?)

Activity

  1. added
    feature request
    on Sep 21, 2025
  2. added
    cli
    text
    on Oct 16, 2025
  3. changed the title [-]allow fonts subcommand to also display the full filename path of the registered font[/-] [+]Allow fonts subcommand to also display the full filename path[/+] on Oct 16, 2025
  4. terefang commented on Oct 25, 2025

    @terefang
    Author

    @laurmaedje

    any chances that this could become a commited feature of the next release ? (eg. 0.14.1 ?)

  5. terefang commented on Nov 18, 2025

    @terefang
    Author

    any chances that will get into 0.15 ?

  6. YDX-2147483647 commented on Nov 19, 2025

    @YDX-2147483647
    Contributor

    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 sups feature.

  7. terefang commented on Nov 19, 2025

    @terefang
    Author

    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 sups feature.

    you are my man!

  8. westNeighbor commented on Nov 24, 2025

    @westNeighbor

    Extremely helpful to have this feature! I'm looking for the reflection font name -> font file for typst, but now luck till now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clifeature requesttext

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions