summaryrefslogtreecommitdiff
path: root/misc/ufo2ft-2.5.0-outlineCompiler.patch
diff options
context:
space:
mode:
Diffstat (limited to 'misc/ufo2ft-2.5.0-outlineCompiler.patch')
-rw-r--r--misc/ufo2ft-2.5.0-outlineCompiler.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/misc/ufo2ft-2.5.0-outlineCompiler.patch b/misc/ufo2ft-2.5.0-outlineCompiler.patch
new file mode 100644
index 000000000..dd500992c
--- /dev/null
+++ b/misc/ufo2ft-2.5.0-outlineCompiler.patch
@@ -0,0 +1,18 @@
+--- a/ufo2ft/outlineCompiler.py
++++ b/ufo2ft/outlineCompiler.py
+@@ -983,7 +983,14 @@
+ topDict.UnderlineThickness = otRound(underlineThickness)
+ # populate font matrix
+ unitsPerEm = otRound(getAttrWithFallback(info, "unitsPerEm"))
+- topDict.FontMatrix = [1.0 / unitsPerEm, 0, 0, 1.0 / unitsPerEm, 0, 0]
++ topDict.FontMatrix = [
++ round(1.0 / unitsPerEm, 14),
++ 0,
++ 0,
++ round(1.0 / unitsPerEm, 14),
++ 0,
++ 0
++ ]
+ # populate the width values
+ if not any(hasattr(info, attr) and getattr(info, attr) is not None
+ for attr in ("postscriptDefaultWidthX",