Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hhea table #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

hhea table #37

wants to merge 2 commits into from

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