Skip to content

Throw a Warning when a Font is not Found #2818

@adamkrellenstein

Description

@adamkrellenstein

Description

When setting the font say globally, with #set text(font: "abcdefg"), if the font is not found (say because it doesn't exist), the output of typst compile doesn't change and the compiler doesn't throw any errors. An error should also be thrown if the appropriate weight/size/etc. cannot be used.

Use Case

This follows the Principle of Least Surprise: if you manually set the font and the output doesn't change, that's strange. The compiler should throw an error (or at the very least, a warning).

Metadata

Metadata

Assignees

No one assigned

    Labels

    diagnosticsImprovements to compiler errorsfeature requestNew feature or requesttextRelated to the text category, which is all about text handling, shaping, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions