Open takaakifuji opened 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.
palt
$ spot -P palt,kern font.otf
$ spot -P palt,kern IBMPlexSansJP-Regular.otf > IBMPlexSansJP-Regular.ps
ぐ
。
ぐ。
See the following screenshots for better illustration:
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.
c/spot/source/GPOS.c
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
.$ spot -P palt,kern IBMPlexSansJP-Regular.otf > IBMPlexSansJP-Regular.ps
.ぐ
(CID+857) and。
(CID+635) pair.ぐ。
, the alternate metrics for both of the characters should be applied.ぐ。
, the alternate metrics for both of the characters are not applied.See the following screenshots for better illustration:
For reference, the following is the result obtained with hb-shape:
Applying a patch like this to
c/spot/source/GPOS.c
should fix this issue, so my speculation is that the code for handlingpalt
is somehow missing for class kerning.