diff options
-rw-r--r-- | scripts/lib/fontbuild/generateGlyph.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/fontbuild/generateGlyph.py b/scripts/lib/fontbuild/generateGlyph.py index 7de9c13..ce381ec 100644 --- a/scripts/lib/fontbuild/generateGlyph.py +++ b/scripts/lib/fontbuild/generateGlyph.py @@ -13,6 +13,7 @@ # limitations under the License. +import re from anchors import alignComponentsToAnchors @@ -93,3 +94,7 @@ def setUnicodeValue(glyph, glyphList): if glyph.name in glyphList: glyph.unicode = int(glyphList[glyph.name], 16) + else: + uvNameMatch = re.match("uni([\dA-F]{4})$", glyph.name) + if uvNameMatch: + glyph.unicode = int(uvNameMatch.group(1), 16) |