Skip to content

Commit c7802e3

Browse files
introfogiText-CI
authored andcommitted
Remove TODOs from PdfTrueTypeFont class
DEVSIX-5186
1 parent 685ed69 commit c7802e3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

kernel/src/main/java/com/itextpdf/kernel/font/PdfTrueTypeFont.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,10 @@ public class PdfTrueTypeFont extends PdfSimpleFont<TrueTypeFont> {
120120
public Glyph getGlyph(int unicode) {
121121
if (fontEncoding.canEncode(unicode)) {
122122
Glyph glyph = getFontProgram().getGlyph(fontEncoding.getUnicodeDifference(unicode));
123-
//TODO TrueType what if font is specific?
124123
if (glyph == null && (glyph = notdefGlyphs.get(unicode)) == null) {
125-
Glyph notdef = getFontProgram().getGlyphByCode(0);
124+
final Glyph notdef = getFontProgram().getGlyphByCode(0);
126125
if (notdef != null) {
127-
glyph = new Glyph(getFontProgram().getGlyphByCode(0), unicode);
126+
glyph = new Glyph(notdef, unicode);
128127
notdefGlyphs.put(unicode, glyph);
129128
}
130129
}
@@ -149,7 +148,6 @@ public void flush() {
149148
return;
150149
}
151150
ensureUnderlyingObjectHasIndirectReference();
152-
//TODO make subtype class member and simplify this method
153151
if (newFont) {
154152
PdfName subtype;
155153
String fontName;

0 commit comments

Comments
 (0)