Brought back GDEF table.

This commit is contained in:
be5invis 2015-09-01 15:08:33 +08:00
parent d51e9f0440
commit 3a99113fcc
2 changed files with 3 additions and 3 deletions

View File

@ -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');
}; };

View File

@ -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