Skip to content

Exporting fonts must set UPM=1000, even if their UPM is higher than that. #115

@mattlag

Description

@mattlag

Ran into a bunch of issues when trying to export a font where it looked like the letter spacing and line height / bounding box were all messed up:

image

Finally figured it out that the setting options.unitsPerEm = 1000 regardless of the font's UPM solved the issue:

image

This is Merriweather Sans with a UPM of 2048, but exported at 1000.

Also, the blinking cursor seems to be the right height, but the selection area seems to be too small:

image

I'm on Windows, I tried this out in PowerPoint, Word, and Adobe Illustrator.

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