Skip to content

Commit

Permalink
[varLib / instancer] Remove DSIG table from font
Browse files Browse the repository at this point in the history
Fixes #1480
  • Loading branch information
behdad committed Oct 28, 2022
1 parent 9369edb commit 4926452
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/fontTools/varLib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,9 @@ def build(
# Copy the base master to work from it
vf = deepcopy(master_fonts[ds.base_idx])

if "DSIG" in vf:
del vf["DSIG"]

# TODO append masters as named-instances as well; needs .designspace change.
fvar = _add_fvar(vf, ds.axes, ds.instances)
if 'STAT' not in exclude:
Expand Down
3 changes: 3 additions & 0 deletions Lib/fontTools/varLib/instancer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1277,6 +1277,9 @@ def instantiateVariableFont(
if not inplace:
varfont = deepcopy(varfont)

if "DSIG" in varfont:
del varfont["DSIG"]

if updateFontNames:
log.info("Updating name table")
names.updateNameTable(varfont, axisLimits)
Expand Down

0 comments on commit 4926452

Please sign in to comment.