-
Notifications
You must be signed in to change notification settings - Fork 521
Open
Labels
Needs InvestigationSpecRelated to the implementation of the Opentype specificationRelated to the implementation of the Opentype specificationenhancement
Milestone
Description
Expected Behavior
I'm looking for the correct way to draw a font vertically.
Current Behavior
If I use font.ascender and font.descender to determine vertical placement (unitsPerEm taken into account), I get unnaturally large gaps between characters with vertical spacing.

This is odd, since opening the font in FontForge doesn't show such abnormally large ascender/descenders as I'm getting from opentype.js.
Maybe it has something to do with you reading the glyph data instead of the actual font metrics?
Possible Solution
I noticed FontForge has a concept of a vertical advance, which I don't see in opentype.js.
Steps to Reproduce (for bugs)
- Draw glyphs manually, using font.ascender and font.descender as metrics for spacing the glyphs vertically.
Your Environment
- Version used: 1.3.4
- Font used: Noto Sans JP
Metadata
Metadata
Assignees
Labels
Needs InvestigationSpecRelated to the implementation of the Opentype specificationRelated to the implementation of the Opentype specificationenhancement


