Skip to content

Commit 52c98be

Browse files
pavel-alayitext-teamcity
authored andcommitted
Fix font selector issue with unknown glyphs in simple font.
DEVSIX-1319 Autoported commit. Original commit hash: [e9e3d2866]
1 parent 749ae02 commit 52c98be

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

itext/itext.kernel/itext/kernel/font/PdfSimpleFont.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,12 @@ public override int AppendGlyphs(String text, int from, int to, IList<Glyph> gly
112112
processed++;
113113
}
114114
else {
115-
break;
115+
if (glyph == null && TextUtil.IsWhitespaceOrNonPrintable((int)text[i])) {
116+
processed++;
117+
}
118+
else {
119+
break;
120+
}
116121
}
117122
}
118123
}

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a965deebca3b3015be993052dc514f6cf9e0aee5
1+
e9e3d2866e8024938a0d4adcb78a2d65c7a4c255

0 commit comments

Comments
 (0)