Brought back GDEF table.
This commit is contained in:
parent
d51e9f0440
commit
3a99113fcc
|
@ -58,8 +58,8 @@ if(argv.dumpfeature) {
|
||||||
featurefile += 'lookup mkmkAuto {' + mkmk.marks.join(';\n') + ';\n' + mkmk.bases.join(';\n') + ';} mkmkAuto;'
|
featurefile += 'lookup mkmkAuto {' + mkmk.marks.join(';\n') + ';\n' + mkmk.bases.join(';\n') + ';} mkmkAuto;'
|
||||||
|
|
||||||
// gdef
|
// gdef
|
||||||
//var gdef = ttfFont.features.gdef;
|
var gdef = ttfFont.features.gdef;
|
||||||
//featurefile += '@GDEF_Simple = [' + gdef.simple.join(' \n') + '];\n@GDEF_Ligature =[' + gdef.ligature.join(' \n') + '];\n@GDEF_Mark = [' + gdef.mark.join(' \n') + '];\ntable GDEF { GlyphClassDef @GDEF_Simple, @GDEF_Ligature, @GDEF_Mark, ;} GDEF;'
|
featurefile += '@GDEF_Simple = [' + gdef.simple.join(' \n') + '];\n@GDEF_Ligature =[' + gdef.ligature.join(' \n') + '];\n@GDEF_Mark = [' + gdef.mark.join(' \n') + '];\ntable GDEF { GlyphClassDef @GDEF_Simple, @GDEF_Ligature, @GDEF_Mark, ;} GDEF;'
|
||||||
|
|
||||||
fs.writeFileSync(argv.dumpfeature, featurefile, 'utf8');
|
fs.writeFileSync(argv.dumpfeature, featurefile, 'utf8');
|
||||||
};
|
};
|
|
@ -11,7 +11,7 @@ print "Reference finding: ", font.fontname
|
||||||
font.selection.select(("ranges", "unicode", None), 0x1FCD, 0x1FCF, 0x1FDD, 0x1FDF)
|
font.selection.select(("ranges", "unicode", None), 0x1FCD, 0x1FCF, 0x1FDD, 0x1FDF)
|
||||||
font.replaceWithReference(2)
|
font.replaceWithReference(2)
|
||||||
font.selection.all()
|
font.selection.all()
|
||||||
font.selection.select(("less", None), "I.straight", "dotlessi.straight", "l.straight")
|
font.selection.select(("less", None), "I.straight", "dotlessi.straight", "l.straight", "rtailBR")
|
||||||
font.replaceWithReference(2)
|
font.replaceWithReference(2)
|
||||||
|
|
||||||
# Remove overlapped area
|
# Remove overlapped area
|
||||||
|
|
Loading…
Reference in New Issue
Block a user