Просмотр исходного кода

Don't align anchors after offsetting

This didn't really make sense to do -- accent components would first
be moved along with the rest of the glyph but then moved right back on
alignment.

The change introducing this was part of
56ad4064e8eeff6c320952daef8767188ae7fa63. No explanation was given.
The general and exhaustive tests still pass after this revert.
James Godfrey-Kittle 9 лет назад
Родитель
Сommit
3072f01352
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      scripts/lib/fontbuild/generateGlyph.py

+ 2 - 2
scripts/lib/fontbuild/generateGlyph.py

@@ -118,11 +118,11 @@ def generateGlyph(f,gname,glyphList={}):
             g = f[glyphName]
             setUnicodeValue(g, glyphList)
             copyMarkAnchors(f, g, baseName, offset[1] + offset[0])
+            if len(accentNames) > 0:
+                alignComponentsToAnchors(f, glyphName, baseName, accentNames)
             if offset[0] != 0 or offset[1] != 0:
                 g.width += offset[1] + offset[0]
                 g.move((offset[0], 0), anchors=False)
-            if len(accentNames) > 0:
-                alignComponentsToAnchors(f, glyphName, baseName, accentNames)
         else:
             print ("Existing glyph '%s' found in font, ignoring composition "
                 "rule '%s'" % (glyphName, gname))