Skip to content

Character path missing commands at smaller sizes #804

@gingerchris

Description

@gingerchris

Using the latest master branch, I'm seeing an issue where a path command is being dropped when rendering a certain character. If I increase the font size, the issue is not present, which makes me suspect there's some kind of rounding going on that causes this issue.

I've created a reproduction here comparing the current NPM release of opentype.js with a current build from the main branch.

Rendering this S character from Bodoni font at size 72 - all is good.

Image

At size 53 it seems to be missing the final command and is drawing a diagonal line to close the path instead of a vertical one

Image

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