Skip to content

Default font kerning is off? #826

@honzasuchy

Description

@honzasuchy

Hi, is there a way to enable/get to work default font kerning? As you can see in a screenshot below spacing between T and O is bit off (blue one is rendered via pdf-lib). It seems like pdf-lib doesn't calculate glyph width with bbox in mind (not sure, I'm not really a type person). I found out that correct way to calculate width of character in fontkit would be glyph.advanceWidth - glyph.bbox.width?
Screenshot 2021-03-15 at 21 07 33

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions