Skip to content

Commit 8c7ade2

Browse files
introfogiText-CI
authored andcommitted
Remove TODOs from PdfTrueTypeFont class
DEVSIX-5186 Autoported commit. Original commit hash: [c7802e3b1]
1 parent 4b6a0d0 commit 8c7ade2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

itext/itext.kernel/itext/kernel/font/PdfTrueTypeFont.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,10 @@ internal PdfTrueTypeFont(PdfDictionary fontDictionary)
105105
public override Glyph GetGlyph(int unicode) {
106106
if (fontEncoding.CanEncode(unicode)) {
107107
Glyph glyph = GetFontProgram().GetGlyph(fontEncoding.GetUnicodeDifference(unicode));
108-
//TODO TrueType what if font is specific?
109108
if (glyph == null && (glyph = notdefGlyphs.Get(unicode)) == null) {
110109
Glyph notdef = GetFontProgram().GetGlyphByCode(0);
111110
if (notdef != null) {
112-
glyph = new Glyph(GetFontProgram().GetGlyphByCode(0), unicode);
111+
glyph = new Glyph(notdef, unicode);
113112
notdefGlyphs.Put(unicode, glyph);
114113
}
115114
}
@@ -133,7 +132,6 @@ public override void Flush() {
133132
return;
134133
}
135134
EnsureUnderlyingObjectHasIndirectReference();
136-
//TODO make subtype class member and simplify this method
137135
if (newFont) {
138136
PdfName subtype;
139137
String fontName;

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
685ed690cca02736d8eba8043fc6b5ff487475a2
1+
c7802e3b1afe4c2d3538a208913e555c781e1911

0 commit comments

Comments
 (0)