Skip to content

font discovery does not work with snap installation #6

@martinclauss

Description

@martinclauss

Description

Hey! :)

I installed the snap version of typst under Linux.

When I try to compile the .typ file I get an error that the font is not found.

The font is correctly installed and I see it in fc-list.

When I set TYPST_FONT_PATHS it works!

When I install typst with cargo install typst-cli it also works!

So it seems that the font discovery does not work as expected with the snap version for typst.

Reproduce:

  • sudo snap install typst
  • get some font from the Internet and put it into ~/.local/share/fonts/
  • use that font in your .typ file
  • typst compile xyz.typ

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions