[testTools] FakeFont needs a cfg attribute too
This commit is contained in:
parent
ec79257960
commit
ade9ce1173
@ -8,6 +8,7 @@ import shutil
|
|||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
from unittest import TestCase as _TestCase
|
from unittest import TestCase as _TestCase
|
||||||
|
from fontTools.config import Config
|
||||||
from fontTools.misc.textTools import tobytes
|
from fontTools.misc.textTools import tobytes
|
||||||
from fontTools.misc.xmlWriter import XMLWriter
|
from fontTools.misc.xmlWriter import XMLWriter
|
||||||
|
|
||||||
@ -53,6 +54,7 @@ class FakeFont:
|
|||||||
self.reverseGlyphOrderDict_ = {g: i for i, g in enumerate(glyphs)}
|
self.reverseGlyphOrderDict_ = {g: i for i, g in enumerate(glyphs)}
|
||||||
self.lazy = False
|
self.lazy = False
|
||||||
self.tables = {}
|
self.tables = {}
|
||||||
|
self.cfg = Config()
|
||||||
|
|
||||||
def __getitem__(self, tag):
|
def __getitem__(self, tag):
|
||||||
return self.tables[tag]
|
return self.tables[tag]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user