File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
kernel/src/main/java/com/itextpdf/kernel/font Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -120,11 +120,10 @@ public class PdfTrueTypeFont extends PdfSimpleFont<TrueTypeFont> {
120
120
public Glyph getGlyph (int unicode ) {
121
121
if (fontEncoding .canEncode (unicode )) {
122
122
Glyph glyph = getFontProgram ().getGlyph (fontEncoding .getUnicodeDifference (unicode ));
123
- //TODO TrueType what if font is specific?
124
123
if (glyph == null && (glyph = notdefGlyphs .get (unicode )) == null ) {
125
- Glyph notdef = getFontProgram ().getGlyphByCode (0 );
124
+ final Glyph notdef = getFontProgram ().getGlyphByCode (0 );
126
125
if (notdef != null ) {
127
- glyph = new Glyph (getFontProgram (). getGlyphByCode ( 0 ) , unicode );
126
+ glyph = new Glyph (notdef , unicode );
128
127
notdefGlyphs .put (unicode , glyph );
129
128
}
130
129
}
@@ -149,7 +148,6 @@ public void flush() {
149
148
return ;
150
149
}
151
150
ensureUnderlyingObjectHasIndirectReference ();
152
- //TODO make subtype class member and simplify this method
153
151
if (newFont ) {
154
152
PdfName subtype ;
155
153
String fontName ;
You can’t perform that action at this time.
0 commit comments