twardoch/fonttools-opentype-feature-freezer

Only able to freeze a single character

j4nw opened this issue · 2 comments

j4nw commented
$ pyftfeatfreeze  -f 'smcp' "D:\Desktop\LibertinusSerif-Bold.otf" "D:\Desktop\LibertinusSerif-SmallCaps.ttf" -n
i.sc

image

-v output:

INFO: [RemapByOTL] Running with options: Namespace(inpath='D:\\Desktop\\LibertinusSerif-Bold.otf', outpath='D:\\Desktop\\LibertinusSerif-SmallCaps.ttf', features='smcp', script=None, lang=None, zapnames=False, suffix=False, usesuffix='', replacenames='', info=False, report=False, names=False, verbose=True)
INFO: [openFont] Opened font: D:\Desktop\LibertinusSerif-Bold.otf
INFO: [filterFeatureIndex] FeatureIndex: [0, 1, 2, 3, 4, 5, 6, 7, 8, 13, 14, 15, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29]
INFO: [filterLookupList] Features to apply: ['smcp']
INFO: [filterLookupList] Lookups: [8, 9]
INFO: [applySubstitutions] Remap: 'i' -> 'i.sc'
INFO: [saveFont] Saved font: D:\Desktop\LibertinusSerif-SmallCaps.ttf
INFO: Finished processing.

Libertinus Serif 7.020 (which does support smcp)
opentype-feature-freezer 1.32.2

@j4nw I made a new app that can handle your needs. Please check it out: https://mutsuntsai.github.io/fontfreeze/