silnrsi / font-padauk

Padauk pan Myanmar font
Other
28 stars 7 forks source link

Multiple Unicode Variation Sequence definitions #49

Closed bobh0303 closed 3 weeks ago

bobh0303 commented 1 year ago

psfufo2ttf can create Unicode Variation Sequencen (UVS) cmaps from either org.sil.variationSequences (in the lib.plist) or the org.sil.uvs keys in .glif files, but will process only one of these sets of data -- with a preference for the data in lib.plist.

As discussed in https://github.com/silnrsi/pysilfont/issues/84#issuecomment-1712228282, Padauk has both org.sil.variationSequences (in the lib.plist) and org.sil.uvs (in a number of .glif files), and the data is different.

My guess is that the .glif data is incorrect and should be removed, which can easily be done by:

cd font-padauk/sources/masters
psfremovegliflibkeys Padauk-Regular.ufo/ org.sil.uvs
psfremovegliflibkeys Padauk-SemiBold.ufo/ org.sil.uvs

Then, by renaming org.sil.variationSequences to public.unicodeVariationSequences, the UFOs can be compiled to TTF by non-SIL tools as well as by psfufo2ttf