fix counting hintmask bytes where cntrmask is present in type 2 charstrings for cff fonts

This commit is contained in:
Eliot Jones
2019-05-14 20:08:44 +01:00
parent 55d34e3998
commit 5cf62eaa11

View File

@@ -869,7 +869,7 @@
x => x =>
{ {
// The numbers preceding the first hintmask following hinting can act as vertical hints. // The numbers preceding the first hintmask following hinting can act as vertical hints.
if (x.Name == "hintmask" && !hasEncounteredInitialHintMask) if ((x.Name == "hintmask" || x.Name == "cntrmask") && !hasEncounteredInitialHintMask)
{ {
hasEncounteredInitialHintMask = true; hasEncounteredInitialHintMask = true;
stemCount += SafeStemCount(precedingNumbers); stemCount += SafeStemCount(precedingNumbers);