adobe-type-tools / afdko

Adobe Font Development Kit for OpenType
https://adobe-type-tools.github.io/afdko/
Other
1.06k stars 167 forks source link

[spot] alternate metrics ignored in class kern proof #1722

Open takaakifuji opened 1 year ago

takaakifuji commented 1 year ago

We found that some kerning pairs in CJK fonts were printed with no palt applied when generating a PostScript proof with $ spot -P palt,kern font.otf.

See the following screenshots for better illustration:

Expected Actual
Screenshot 2023-10-25 at 10 58 58 Screenshot 2023-10-25 at 10 59 11

For reference, the following is the result obtained with hb-shape:

$ hb-shape --features='palt,kern' IBMPlexSansJP-Regular.otf 'ぐ。'
[gid857=0@-105,0+785|gid635=1+500]

Applying a patch like this to c/spot/source/GPOS.c should fix this issue, so my speculation is that the code for handling palt is somehow missing for class kerning.