diff --git a/python/psautohint/ufoFont.py b/python/psautohint/ufoFont.py index 83bf37656..21c367aae 100644 --- a/python/psautohint/ufoFont.py +++ b/python/psautohint/ufoFont.py @@ -558,7 +558,7 @@ def get_glyph_bez(glyph, round_coords): pen = BezPen(glyph.glyphSet, round_coords) glyph.draw(pen) if not hasattr(glyph, "width"): - glyph.width = 1000 + glyph.width = 0 return pen.bez def _get_or_skip_glyph(self, name, round_coords, doAll): @@ -803,7 +803,7 @@ class HashPointPen(AbstractPointPen): def __init__(self, glyph): self.glyphset = getattr(glyph, "glyphSet", None) - self.width = norm_float(round(getattr(glyph, "width", 1000), 9)) + self.width = norm_float(round(getattr(glyph, "width", 0), 9)) self.data = ["w%s" % self.width] def getHash(self): diff --git a/tests/integration/data b/tests/integration/data index 1a7b0fae8..ce7145532 160000 --- a/tests/integration/data +++ b/tests/integration/data @@ -1 +1 @@ -Subproject commit 1a7b0fae8bb00aca1973e79100247238cf6cc7ae +Subproject commit ce7145532942859e588ab1d2f2669e95ac1249e0 diff --git a/tests/integration/test_hint.py b/tests/integration/test_hint.py index 288c33408..b65baef3b 100644 --- a/tests/integration/test_hint.py +++ b/tests/integration/test_hint.py @@ -304,6 +304,16 @@ def test_hashmap_new_version(tmpdir, caplog): hintFiles(options) +def test_hashmap_advance(tmpdir): + path = "%s/dummy/hashmap_advance.ufo" % DATA_DIR + out = str(tmpdir / basename(path)) + ".out" + options = Options(path, out) + + hintFiles(options) + + assert differ([path, out]) + + def test_hashmap_transform(tmpdir): path = "%s/dummy/hashmap_transform.ufo" % DATA_DIR out = str(tmpdir / basename(path)) + ".out"