Skip to content

fixes to verticalMetrics proofs#5

Merged
frankrolf merged 8 commits into
mainfrom
vmProof_fixes
Sep 9, 2023
Merged

fixes to verticalMetrics proofs#5
frankrolf merged 8 commits into
mainfrom
vmProof_fixes

Conversation

@frankrolf

Copy link
Copy Markdown
Member

This PR is mainly about the labels in the vertical metrics proofs:

  • the point size of metrics labels is no longer dependent on the UPM of a given font/UFO
  • metrics labels can be converted to their 1000-UPM equivalent

Along the way, I fixed some more issues I encountered:

  • do not assume fonts to have specific standard glyph names (such as H)
  • do not assume all fonts to have the same UPM

Cosmetics:

  • glyph drawing has been moved to its own module. It is accessed by lots of scripts, so no need for code duplication.
  • remove hard-coded call to InputMono

@frankrolf

Copy link
Copy Markdown
Member Author

FWIW, not everyone has to review this – just thought you might be interested :-)

@josh-hadley josh-hadley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion; otherwise looks good. Nice to move more stuff to common modules!

Comment thread verticalMetricsComparisonProof.py Outdated
Although verticalMetricsComparisonProof is dependent on verticalMetricsProof, it’s better to be explicit with the imports.
@frankrolf frankrolf merged commit 818efdc into main Sep 9, 2023
@frankrolf frankrolf deleted the vmProof_fixes branch September 9, 2023 13:41
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