File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
itext/itext.kernel/itext/kernel/font Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,10 @@ internal PdfTrueTypeFont(PdfDictionary fontDictionary)
105
105
public override Glyph GetGlyph ( int unicode ) {
106
106
if ( fontEncoding . CanEncode ( unicode ) ) {
107
107
Glyph glyph = GetFontProgram ( ) . GetGlyph ( fontEncoding . GetUnicodeDifference ( unicode ) ) ;
108
- //TODO TrueType what if font is specific?
109
108
if ( glyph == null && ( glyph = notdefGlyphs . Get ( unicode ) ) == null ) {
110
109
Glyph notdef = GetFontProgram ( ) . GetGlyphByCode ( 0 ) ;
111
110
if ( notdef != null ) {
112
- glyph = new Glyph ( GetFontProgram ( ) . GetGlyphByCode ( 0 ) , unicode ) ;
111
+ glyph = new Glyph ( notdef , unicode ) ;
113
112
notdefGlyphs . Put ( unicode , glyph ) ;
114
113
}
115
114
}
@@ -133,7 +132,6 @@ public override void Flush() {
133
132
return ;
134
133
}
135
134
EnsureUnderlyingObjectHasIndirectReference ( ) ;
136
- //TODO make subtype class member and simplify this method
137
135
if ( newFont ) {
138
136
PdfName subtype ;
139
137
String fontName ;
Original file line number Diff line number Diff line change 1
- 685ed690cca02736d8eba8043fc6b5ff487475a2
1
+ c7802e3b1afe4c2d3538a208913e555c781e1911
You can’t perform that action at this time.
0 commit comments