diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2015-12-07 11:14:47 +0100 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2015-12-07 11:14:47 +0100 |
commit | 2c343c852a0ae8feb2b376c006f9a5fe1bd8688b (patch) | |
tree | 2ed1d81ebf6605bf04f0d779f862b1076b212505 /scripts/build-v2.py | |
parent | 82822afb538df428777101a081f254a46fe4a0c7 (diff) | |
parent | 7d38014a38dae2303960adac770cd1399f7af032 (diff) |
Merge pull request #137 from jamesgk/ttf-generation
TTF generation
Diffstat (limited to 'scripts/build-v2.py')
-rw-r--r-- | scripts/build-v2.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/build-v2.py b/scripts/build-v2.py index 58842d6..0ef86e9 100644 --- a/scripts/build-v2.py +++ b/scripts/build-v2.py @@ -91,8 +91,7 @@ proj = FontProject(rg.font, BASEDIR, "res/roboto.cfg", th.ffont) FAMILYNAME = "Roboto" proj.buildOTF = True -#proj.autohintOTF = True -proj.buildTTF = True +#proj.compatible = True proj.generateFont(th.font, "%s/Thin/Regular/Th"%FAMILYNAME) proj.generateFont(Mix([th, rg], 0.45), "%s/Light/Regular/Lt"%FAMILYNAME) @@ -119,6 +118,10 @@ proj.generateFont(Mix([rg, bd], RPoint(1.125, 1.0)), "%s/Black Italic/Bold Italic/Bk"%FAMILYNAME, italic=True, stemWidth=290) +# unfortunately some condensed forms (*.cn) of glyphs are not compatible with +# their original forms, so we can't convert all fonts together compatibly +proj.generateTTFs() + thcn1 = Master(condenseFont(th.font, .84, 40)) cn1 = Master(rg.ffont.addDiff(thcn1.ffont, th.ffont)) bdcn1 = Master(bd.ffont.addDiff(thcn1.ffont, th.ffont)) @@ -143,4 +146,4 @@ proj.generateFont(Mix([cn1, bdcn1], RPoint(0.75, 0.75)), "%s Condensed/Bold Italic/Bold Italic/Rg"%FAMILYNAME, italic=True, swapSuffixes=[".cn"], stemWidth=240) -sys.exit(0) +proj.generateTTFs() |