Skip to content

Conversation

@Orycterope
Copy link

Parsing the hhea table, to get some general information about the font :

  • MaxAscent
  • MaxDescent
  • LineGap
  • AdvanceWidthMax

As I understand it, this is needed to get the distance between two baselines (MaxAscent + MaxDescent + LineGap)

@raphlinus
Copy link
Owner

This looks pretty good, and I'm inclined to merge it. Before I do, I want to be sure you understand that HHEA is one of (at least) 3 sets of metrics tables. The vertical metrics page at Glyphs has lots more information on this.

Perhaps this means a change to doc comments or method names to emphasize that this is the HHEA value and not the definitive value for such metrics.

@Orycterope
Copy link
Author

Orycterope commented Dec 10, 2018

Thank you, your site was really instructive. I knew those values weren't definitive, but I didn't know it was this much of a mess. I'm adding doc comments right away !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants