googlefonts / fontc

Where in we pursue oxidizing (context: https://github.com/googlefonts/oxidize) fontmake.
Apache License 2.0
85 stars 14 forks source link

fontc doesn't use glyphsLib _defaultsForName for OS/2 #1024

Closed rsheeter closed 1 month ago

rsheeter commented 1 month ago

https://github.com/googlefonts/glyphsLib/blob/1cb4fc5ae2cf385df95d2b7768e7ab4eb60a5ac3/Lib/glyphsLib/classes.py#L1590-L1601 causes different defaults:

    _defaultsForName = {
        "weight": "Regular",
        "width": "Regular",
        "x-height": 500,
        "cap height": 700,
        "ascender": 800,
        "descender": -200,
        "italic angle": 0,
    }

This seems likely to explain OS/2 diffs for at least oft-type-yarndings/sources/Yarndings12Charted.glyphs