silnrsi / font-ttf-scripts

Font::TTF::Scripts perl module
Artistic License 2.0
19 stars 7 forks source link

ttfremap does not work to encode a SMP character #23

Open devosb opened 2 years ago

devosb commented 2 years ago

I used ttfremap to encode an alternate glyph as a character. If the codepoint is in the SMP, then the resulting font is not correct. Specially, the new font

The command line I used was

ttfremap -r -c iru_remap.txt ThiruValluvar-Regular.ttf ThiruValluvarIRU-Regular.ttf

where the file iru_remap.txt contained

n, nukta.ringdbl, 1133B

Test fonts can be found on a CI.

devosb commented 1 year ago

I needed to use the glyphname in the TTF, not the UFO sources. So the file iru_remap.txt should have contained

n, u1133C.ringdbl, 1133C

With this fix the desired glyph appears. However, the extra cmap (0, 0, 12) is still added.