rename setupDSIG to setupDummyDSIG and added a doc string to clarify the legacy status of this

This commit is contained in:
justvanrossum 2018-11-01 13:19:27 +01:00
parent 8d2615e9c8
commit 25f29841b7
2 changed files with 6 additions and 3 deletions

View File

@ -498,7 +498,10 @@ class FontBuilder(object):
defaults = _maxpDefaultsOTF
self._initTableWithValues("maxp", defaults, {})
def setupDSIG(self):
def setupDummyDSIG(self):
"""This adds a dummy DSIG table to the font to make some MS applications
happy. This does not properly sign the font.
"""
from .ttLib.tables.D_S_I_G_ import SignatureRecord
sig = SignatureRecord()

View File

@ -70,7 +70,7 @@ def test_build_ttf(tmpdir):
fb.setupNameTable(nameStrings)
fb.setupOS2()
fb.setupPost()
fb.setupDSIG()
fb.setupDummyDSIG()
fb.save(outPath)
@ -101,7 +101,7 @@ def test_build_otf(tmpdir):
fb.setupNameTable(nameStrings)
fb.setupOS2()
fb.setupPost()
fb.setupDSIG()
fb.setupDummyDSIG()
fb.save(outPath)