freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] OpenType-1.8 dfce476 4/6: Don't allow CFF2 charstrings to sp


From: Dave Arnold
Subject: [freetype2] OpenType-1.8 dfce476 4/6: Don't allow CFF2 charstrings to specify a width
Date: Thu, 17 Nov 2016 16:23:03 +0000 (UTC)

branch: OpenType-1.8
commit dfce4760af0707a95701e861a42b5950879dcbab
Author: Dave Arnold <address@hidden>
Commit: Dave Arnold <address@hidden>

    Don't allow CFF2 charstrings to specify a width
---
 src/cff/cf2intrp.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/cff/cf2intrp.c b/src/cff/cf2intrp.c
index 4bfaa64..0cbee55 100644
--- a/src/cff/cf2intrp.c
+++ b/src/cff/cf2intrp.c
@@ -547,8 +547,10 @@
      * If one of the above operators occurs without explicitly specifying
      * a width, we assume the default width.
      *
+     * CFF2 charstrings always return the default width (0)
+     *
      */
-    haveWidth = FALSE;
+    haveWidth = font->isCFF2 ? TRUE : FALSE;
     *width    = cf2_getDefaultWidthX( decoder );
 
     /*



reply via email to

[Prev in Thread] Current Thread [Next in Thread]