Skip to content

Add font-contrast to Python - #49

Open
ayaanahad wants to merge 2 commits into
Jolg42:mainfrom
ayaanahad:add-font-contrast
Open

Add font-contrast to Python#49
ayaanahad wants to merge 2 commits into
Jolg42:mainfrom
ayaanahad:add-font-contrast

Conversation

@ayaanahad

Copy link
Copy Markdown

Adds font-contrast to Python.

It reads metrics straight out of the binaries with fontTools — x-height and cap height
from OS/2, the weight axis from fvar, and mean advance over a–z resolved through
cmap into hmtx — and publishes the result for 54 open-source families as CC0 JSON/CSV.

It was written because OS/2.xAvgCharWidth is unreliable: Poppins declares 0.851 em and
measures 0.561, and five family pairs declare identical values while their real widths
differ by up to 0.113 em.

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.

1 participant