From 3a99113fcc4958f723c2560d2d559c7ccd3da5bc Mon Sep 17 00:00:00 2001 From: be5invis Date: Tue, 1 Sep 2015 15:08:33 +0800 Subject: [PATCH] Brought back GDEF table. --- generate.js | 4 ++-- pass1-cleanup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generate.js b/generate.js index 1575e7a..8f2f336 100644 --- a/generate.js +++ b/generate.js @@ -58,8 +58,8 @@ if(argv.dumpfeature) { featurefile += 'lookup mkmkAuto {' + mkmk.marks.join(';\n') + ';\n' + mkmk.bases.join(';\n') + ';} mkmkAuto;' // 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;' + 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;' fs.writeFileSync(argv.dumpfeature, featurefile, 'utf8'); }; \ No newline at end of file diff --git a/pass1-cleanup.py b/pass1-cleanup.py index 0d48e6a..e4ff78b 100644 --- a/pass1-cleanup.py +++ b/pass1-cleanup.py @@ -11,7 +11,7 @@ print "Reference finding: ", font.fontname font.selection.select(("ranges", "unicode", None), 0x1FCD, 0x1FCF, 0x1FDD, 0x1FDF) font.replaceWithReference(2) 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) # Remove overlapped area