summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-04-09 17:54:59 -0700
committerJames Godfrey-Kittle <jamesgk@google.com>2015-04-16 12:16:34 -0700
commitc88d69e5c511006a649cc97e890e144a6fc970ca (patch)
tree64c7d07ca3af9a33e09e09da55b957733e47667c
parent4c2e21af55b6081a879cfe6fa3a12799daf2d993 (diff)
Make sure mark feature values are ints.
This is necessary when a font has been italicized, and its anchors have been transformed.
-rwxr-xr-xscripts/lib/fontbuild/markFeature.py6
-rwxr-xr-xscripts/lib/fontbuild/mkmkFeature.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/scripts/lib/fontbuild/markFeature.py b/scripts/lib/fontbuild/markFeature.py
index e2c4a38..9a9f9f5 100755
--- a/scripts/lib/fontbuild/markFeature.py
+++ b/scripts/lib/fontbuild/markFeature.py
@@ -46,15 +46,15 @@ def Create_mark_lookup(accent_g_list, base_g_list, lookupname, acc_class, lookAl
txt = "lookup " + lookupname + " {\n"
for acc in accent_g_list:
- txt += " markClass " + acc[0] + " <anchor " + `acc[1]` + " " + `acc[2]` + "> " + acc_class +";\n"
+ txt += " markClass " + acc[0] + " <anchor " + `int(acc[1])` + " " + `int(acc[2])` + "> " + acc_class +";\n"
for base in base_g_list:
- txt += " pos base " + base[0] + " <anchor " + `base[1]` + " " + `base[2]` + "> mark " + acc_class + ";\n"
+ txt += " pos base " + base[0] + " <anchor " + `int(base[1])` + " " + `int(base[2])` + "> mark " + acc_class + ";\n"
if (lookAliases):
base2 = GetAliaseName(base[0])
if (None == base2):
continue
- txt += " pos base " + base2 + " <anchor " + `base[1]` + " " + `base[2]` + "> mark " + acc_class + ";\n"
+ txt += " pos base " + base2 + " <anchor " + `int(base[1])` + " " + `int(base[2])` + "> mark " + acc_class + ";\n"
txt += "} " + lookupname + ";\n"
diff --git a/scripts/lib/fontbuild/mkmkFeature.py b/scripts/lib/fontbuild/mkmkFeature.py
index 7a05077..9d1bbfc 100755
--- a/scripts/lib/fontbuild/mkmkFeature.py
+++ b/scripts/lib/fontbuild/mkmkFeature.py
@@ -33,10 +33,10 @@ def Create_mkmk1(accent_g_list, base_g_list, lookupname, acc_class):
txt = "lookup " + lookupname + " {\n"
#acc_class = "@MC_mkmk"
for acc in accent_g_list:
- txt += " markClass " + acc[0] + " <anchor " + `acc[1]` + " " + `acc[2]` + "> " + acc_class +";\n"
+ txt += " markClass " + acc[0] + " <anchor " + `int(acc[1])` + " " + `int(acc[2])` + "> " + acc_class +";\n"
for base in base_g_list:
- txt += " pos mark " + base[0] + " <anchor " + `base[1]` + " " + `base[2]` + "> mark " + acc_class + ";\n"
+ txt += " pos mark " + base[0] + " <anchor " + `int(base[1])` + " " + `int(base[2])` + "> mark " + acc_class + ";\n"
txt += "} " + lookupname + ";\n"