We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7958b64 commit a1c1addCopy full SHA for a1c1add
kernel/src/main/java/com/itextpdf/kernel/font/PdfFont.java
@@ -56,7 +56,17 @@ protected PdfFont() {
56
public abstract Glyph getGlyph(int unicode);
57
58
public boolean containsGlyph(char unicode) {
59
- return getGlyph(unicode) != null;
+ Glyph glyph = getGlyph(unicode);
60
+ if (glyph != null) {
61
+ if (getFontProgram() != null && getFontProgram().isFontSpecific()) {
62
+ //if current is symbolic, zero code is valid value
63
+ return glyph.getCode() > -1;
64
+ } else {
65
+ return glyph.getCode() > 0;
66
+ }
67
68
+ return false;
69
70
}
71
72
public abstract GlyphLine createGlyphLine(String content);
0 commit comments