font-rs icon indicating copy to clipboard operation
font-rs copied to clipboard

hhea table

Open Orycterope opened this issue 7 years ago • 2 comments

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)

Orycterope avatar Dec 08 '18 16:12 Orycterope

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.

raphlinus avatar Dec 09 '18 01:12 raphlinus

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 !

Orycterope avatar Dec 10 '18 13:12 Orycterope