diff options
author | Dave Arnold <darnold@adobe.com> | 2016-11-11 14:16:21 -0800 |
---|---|---|
committer | Dave Arnold <darnold@adobe.com> | 2016-11-11 14:16:21 -0800 |
commit | dfce4760af0707a95701e861a42b5950879dcbab (patch) | |
tree | 49570aa22c5ff5270530ddb81ef0ee4d14dce9c6 | |
parent | e3ef1df506fe6cf4a5971e5bab3c663770506939 (diff) | |
download | freetype2-dfce4760af0707a95701e861a42b5950879dcbab.tar.gz |
Don't allow CFF2 charstrings to specify a width
-rw-r--r-- | src/cff/cf2intrp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cff/cf2intrp.c b/src/cff/cf2intrp.c index 4bfaa649d..0cbee559a 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 ); /* |