Skip to content

Commit

Permalink
Updated build process and modified font
Browse files Browse the repository at this point in the history
- 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
aaronbell committed Dec 2, 2020
1 parent f41bc5e commit ab02678
Show file tree
Hide file tree
Showing 6 changed files with 1,776,760 additions and 0 deletions.
29 changes: 29 additions & 0 deletions build.py
@@ -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 removed fonts/otf/FZ-Potta-Regular.otf
Binary file not shown.
Binary file removed fonts/ttf/FZ-Potta-Regular.ttf
Binary file not shown.
Binary file added fonts/ttf/PottaOne-Regular.ttf
Binary file not shown.

0 comments on commit ab02678

Please sign in to comment.