Skip to content

Lastest git commit breaks font importing #4710

Closed

Description

@Naville

Description

I got weired weired unknown font family when switching from latest release to git version.

image
image

This works in last stable release version.
I wonder if this font lookup failure is due to mismatching font name (Heiti vs heiti)

Reproduction URL

No response

Operating system

macOS

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    on Aug 9, 2024
  2. laurmaedje commented on Aug 9, 2024

    @laurmaedje
    Member

    All font names are matched case insensitive (or rather lowercased before matching), so that shouldn't be the cause.

  3. laurmaedje commented on Aug 9, 2024

    @laurmaedje
    Member

    Note that the warning is new, so the problem might have existed before. But still strange since typst fonts shows it and the compiler complains.

  4. wdscxsj commented on Aug 9, 2024

    @wdscxsj

    I think this issue was introduced shortly after 18ce3f1.

    Update: Sorry, updated the commit.

  5. laurmaedje commented on Aug 9, 2024

    @laurmaedje
    Member

    I think this issue was introduced shortly after b07607d.

    The linked commit is the latest commit on main.

  6. Naville commented on Aug 9, 2024

    @Naville
    Author

    I switched to main to attempt to fix emoji support this morning (~7hrs ago). Previously was always the 0.11.1 stable.

    In case someone wants to do a bisect

  7. a31474 commented on Aug 9, 2024

    @a31474

    1

    If you use "--ignore-system-fonts" , it will work. And the generated PDF used the correct font.

  8. added a commit that references this issue on Aug 9, 2024
    816509e
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions