diff options
author | Rasmus Andersson <rasmus@notion.se> | 2020-08-19 03:57:25 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2020-08-19 03:57:25 +0300 |
commit | d76268cf8d778c709ce2e714a36e17d0d23effa9 (patch) | |
tree | 0f0a31da1ce5aba1ef64af37660a54ca0c06e4bb /misc/fontbuildlib/builder.py | |
parent | cb3d2853b9234b2764124cbc6113f779d419331e (diff) | |
download | inter-d76268cf8d778c709ce2e714a36e17d0d23effa9.tar.xz |
tooling: upgrade libs, rename VF fext otf -> ttf, add STAT table patch
- upgrades 3rd party libraries used by the toolchain
- upgrades fontbuild code to adjust changes to library APIs
- renames VF font filename extensions to .ttf
- adds better STAT table patch to improve metadata on Windows
Diffstat (limited to 'misc/fontbuildlib/builder.py')
-rw-r--r-- | misc/fontbuildlib/builder.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/fontbuildlib/builder.py b/misc/fontbuildlib/builder.py index b4a53df1b..da769769c 100644 --- a/misc/fontbuildlib/builder.py +++ b/misc/fontbuildlib/builder.py @@ -7,6 +7,7 @@ from fontTools.designspaceLib import DesignSpaceDocument from .name import getFamilyName, setFullName from .info import updateFontVersion from .glyph import findGlyphDirectives, composedGlyphIsTrivial, decomposeGlyphs +from .stat import rebuildStatTable log = logging.getLogger(__name__) @@ -81,6 +82,9 @@ class FontBuilder: # record is still computed by fonttools, so we override it here. setFullName(font, getFamilyName(font)) + # rebuild STAT table to correct VF instance information + rebuildStatTable(font, designspace) + log.debug("writing %s", outputFilename) font.save(outputFilename) |