rename setupDSIG to setupDummyDSIG and added a doc string to clarify the legacy status of this
This commit is contained in:
parent
8d2615e9c8
commit
25f29841b7
@ -498,7 +498,10 @@ class FontBuilder(object):
|
|||||||
defaults = _maxpDefaultsOTF
|
defaults = _maxpDefaultsOTF
|
||||||
self._initTableWithValues("maxp", defaults, {})
|
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
|
from .ttLib.tables.D_S_I_G_ import SignatureRecord
|
||||||
|
|
||||||
sig = SignatureRecord()
|
sig = SignatureRecord()
|
||||||
|
@ -70,7 +70,7 @@ def test_build_ttf(tmpdir):
|
|||||||
fb.setupNameTable(nameStrings)
|
fb.setupNameTable(nameStrings)
|
||||||
fb.setupOS2()
|
fb.setupOS2()
|
||||||
fb.setupPost()
|
fb.setupPost()
|
||||||
fb.setupDSIG()
|
fb.setupDummyDSIG()
|
||||||
|
|
||||||
fb.save(outPath)
|
fb.save(outPath)
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ def test_build_otf(tmpdir):
|
|||||||
fb.setupNameTable(nameStrings)
|
fb.setupNameTable(nameStrings)
|
||||||
fb.setupOS2()
|
fb.setupOS2()
|
||||||
fb.setupPost()
|
fb.setupPost()
|
||||||
fb.setupDSIG()
|
fb.setupDummyDSIG()
|
||||||
|
|
||||||
fb.save(outPath)
|
fb.save(outPath)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user