kohler / lcdf-typetools

Utilities for manipulating OpenType, PostScript Type 1, and Multiple Master fonts.
GNU General Public License v2.0
146 stars 18 forks source link

otfinfo erroneously reports Cyrillic script for TeX Gyre Pagella #29

Closed intractabilis closed 3 years ago

intractabilis commented 3 years ago

otfinfo reports Cyrillic in TeX Gyre Pagella:

$ otfinfo --scripts texgyrepagella-regular.otf
DFLT        Default
cyrl        Cyrillic
latn        Latin
latn.AZE    Latin/Azeri
latn.CRT    Latin/Crimean Tatar
latn.MOL    Latin/Moldavian
latn.NLD    Latin/Dutch
latn.PLK    Latin/Polish
latn.ROM    Latin/Romanian
latn.TRK    Latin/Turkish

In fact there is no Cyrillic Unicode block there:

$ otfinfo --unicode texgyrepagella-regular.otf | grep -P 'uni04[0-9A-F][0-9A-F]'

texgyrepagella-regular.zip

kohler commented 3 years ago

I consider this a bug in the font. The font incorrectly claims to support Cyrillic in its GPOS and GSUB tables; otfinfo --scripts is using those tables.