googlefonts / ufo2ft

A bridge from UFOs to FontTools objects (and therefore, OTFs and TTFs).
MIT License
151 stars 43 forks source link

Bucketize Hiragana and Katakana for kern writing purposes #683

Closed madig closed 1 year ago

madig commented 1 year ago

I missed this special case before; Hiragana and Katakana are expected to be kernable against each other and apps commonly support this. They seem to be the only two scripts that are aliased together under the ISO 15924 name "Hrkt" and which map to the OT tag "kana". Keeping them separate would result in two script kana; blocks in the kern feature and therefore common glyphs being kerned twice.

madig commented 1 year ago

The flake8 warning B905 seems new but sensible. Will fix in different PR and then rebase this one.

Duh wait, it's a new parameter in Python 3.10... hm.....