mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-15 19:54:52 +08:00
fix counting hintmask bytes where cntrmask is present in type 2 charstrings for cff fonts
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user