Skip to content

head table bounding box is not recalculated for variable font instances #40

Closed

Description

@khaledhosny

Using subset_with_variations() to instance of a variable font, it does not update the head table bounds (xMin, yMin, xMax and yMax are copied unchanged). Some glyphs in the instance might be bigger than the bounds of the default instance.

The macOS rasterizer crops glyphs outside of the head bounds. This can be seen when opening PDFs created with Krilla in macOS Preview (I had the same issue in PDFs created with Illustrator previously).

Activity

  1. khaledhosny commented on Oct 28, 2026

    @khaledhosny
    ContributorAuthor

    Oops, wrong repo. I meant to post this on https://github.com/typst/subsetter

  2. LaurenzV commented on Oct 28, 2026

    @LaurenzV
    Collaborator

    Ah that's unfortunate. :( Hopefully we can deprecate our subsetter in favor of skera soon.

  3. khaledhosny commented on Oct 28, 2026

    @khaledhosny
    ContributorAuthor

    I can try to work on a fix if you are OK with that, unless move to skera in Krilla/pdf-writer is imminent.

  4. LaurenzV commented on Oct 28, 2026

    @LaurenzV
    Collaborator

    Sounds good to me, if you are interested! Don't think it's imminent.

  5. khaledhosny commented on Nov 22, 2026

    @khaledhosny
    ContributorAuthor

    Any chance you can review #41?

  6. LaurenzV commented on Nov 22, 2026

    @LaurenzV
    Collaborator

    Sorry!! I’ll take a look when I can.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions