diff options
author | Rasmus Andersson <rasmus@notion.se> | 2018-09-03 22:55:49 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2018-09-03 22:55:49 +0300 |
commit | c833e252c925e8dd68108660710ca835d95daa6f (patch) | |
tree | 6b2e28264ed45efd7f054e453b622098d0d875b8 /misc/pylib/robofab/test/test_objectsFL.py | |
parent | 8c1a4c181ef12000179dfec541f1af87e9b03122 (diff) | |
download | inter-c833e252c925e8dd68108660710ca835d95daa6f.tar.xz |
Major overhaul, moving from UFO2 to Glyphs and UFO3, plus a brand new and much simpler fontbuild
Diffstat (limited to 'misc/pylib/robofab/test/test_objectsFL.py')
-rwxr-xr-x | misc/pylib/robofab/test/test_objectsFL.py | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/misc/pylib/robofab/test/test_objectsFL.py b/misc/pylib/robofab/test/test_objectsFL.py deleted file mode 100755 index 948897097..000000000 --- a/misc/pylib/robofab/test/test_objectsFL.py +++ /dev/null @@ -1,54 +0,0 @@ -"""This test suite for various FontLab-specific tests.""" - - -import FL # needed to quickly raise ImportError if run outside of FL - - -import os -import tempfile -import unittest - -from robofab.world import NewFont -from robofab.test.testSupport import getDemoFontPath, getDemoFontGlyphSetPath -from robofab.tools.glifImport import importAllGlifFiles -from robofab.pens.digestPen import DigestPointPen -from robofab.pens.adapterPens import SegmentToPointPen - - -def getDigests(font): - digests = {} - for glyphName in font.keys(): - pen = DigestPointPen() - font[glyphName].drawPoints(pen) - digests[glyphName] = pen.getDigest() - return digests - - -class FLTestCase(unittest.TestCase): - - def testUFOVersusGlifImport(self): - font = NewFont() - font.readUFO(getDemoFontPath(), doProgress=False) - d1 = getDigests(font) - font.close(False) - font = NewFont() - importAllGlifFiles(font.naked(), getDemoFontGlyphSetPath(), doProgress=False) - d2 = getDigests(font) - self.assertEqual(d1, d2) - font.close(False) - - def testTwoUntitledFonts(self): - font1 = NewFont() - font2 = NewFont() - font1.unitsPerEm = 1024 - font2.unitsPerEm = 2048 - self.assertNotEqual(font1.unitsPerEm, font2.unitsPerEm) - font1.update() - font2.update() - font1.close(False) - font2.close(False) - - -if __name__ == "__main__": - from robofab.test.testSupport import runTests - runTests() |