Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated build process and modified font
- Updated font metadata - Renamed to Potta One per Google's naming requirements - Tweaked shape of ogonek form to achieve a more proper proportion - Swapped lining figures and tabular figures so the correct glyph is used in the OT feature. - Changed width of nbspace to 400 to align with the standard space.
- Loading branch information
Showing
6 changed files
with
1,776,760 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from fontmake import __main__ | ||
from fontTools.ttLib import TTFont, newTable | ||
import shutil | ||
|
||
__main__.main(("-g","sources/Potta.glyphs", "-o","ttf",)) | ||
|
||
path = "master_ttf/PottaOne-Regular.ttf" | ||
|
||
|
||
modifiedFont = TTFont(path) | ||
print ("Adding additional tables") | ||
modifiedFont["DSIG"] = newTable("DSIG") #need that stub dsig | ||
|
||
print ("Making other changes") | ||
modifiedFont["DSIG"].ulVersion = 1 | ||
modifiedFont["DSIG"].usFlag = 0 | ||
modifiedFont["DSIG"].usNumSigs = 0 | ||
modifiedFont["DSIG"].signatureRecords = [] | ||
modifiedFont["gasp"] = newTable("gasp") | ||
modifiedFont["gasp"].gaspRange = {65535: 0x000A} #Font is shipping UNHINTED :D | ||
|
||
modifiedFont["name"].addMultilingualName({'ja':'ポッタ'}, modifiedFont, nameID = 1, windows=True, mac=False) | ||
modifiedFont["name"].addMultilingualName({'ja':'Regular'}, modifiedFont, nameID = 2, windows=True, mac=False) | ||
|
||
modifiedFont.save("fonts/ttf/PottaOne-Regular.ttf") | ||
|
||
shutil.rmtree("instance_ufo") | ||
shutil.rmtree("master_ufo") | ||
shutil.rmtree("master_ttf") |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.