ignore hflex when calculating hint bytes

hflex and hflex1 should not count towards the hint byte count for a hintmask operator in type 2 charstrings.
This commit is contained in:
Eliot Jones
2020-01-08 13:27:33 +00:00
parent 4976fa1027
commit a496daf0ce

View File

@@ -902,6 +902,10 @@ namespace UglyToad.PdfPig.Fonts.CompactFontFormat.CharStrings
{
precedingNumbers = 0;
}
else if (identifier.IsMultiByteCommand && identifier.CommandId > 35)
{
precedingNumbers = 0;
}
else
{
stemCount += SafeStemCount(precedingNumbers);