Don't allow CFF2 charstrings to specify a width

This commit is contained in:
Dave Arnold 2016-11-11 14:16:21 -08:00
parent e3ef1df506
commit dfce4760af
1 changed files with 3 additions and 1 deletions

View File

@ -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 );
/*