|
Lines 118-123
Link Here
|
| 118 |
|
118 |
|
| 119 |
TextFontInfo::TextFontInfo(GfxState *state) { |
119 |
TextFontInfo::TextFontInfo(GfxState *state) { |
| 120 |
gfxFont = state->getFont(); |
120 |
gfxFont = state->getFont(); |
|
|
121 |
if (gfxFont) |
| 122 |
gfxFont->incRefCnt (); |
| 121 |
#if TEXTOUT_WORD_LIST |
123 |
#if TEXTOUT_WORD_LIST |
| 122 |
fontName = (gfxFont && gfxFont->getOrigName()) |
124 |
fontName = (gfxFont && gfxFont->getOrigName()) |
| 123 |
? gfxFont->getOrigName()->copy() |
125 |
? gfxFont->getOrigName()->copy() |
|
Lines 126-131
TextFontInfo::TextFontInfo(GfxState *sta
Link Here
|
| 126 |
} |
128 |
} |
| 127 |
|
129 |
|
| 128 |
TextFontInfo::~TextFontInfo() { |
130 |
TextFontInfo::~TextFontInfo() { |
|
|
131 |
if (gfxFont) |
| 132 |
gfxFont->decRefCnt (); |
| 129 |
#if TEXTOUT_WORD_LIST |
133 |
#if TEXTOUT_WORD_LIST |
| 130 |
if (fontName) { |
134 |
if (fontName) { |
| 131 |
delete fontName; |
135 |
delete fontName; |
|
Lines 3298-3303
void TextSelectionPainter::visitWord (Te
Link Here
|
| 3298 |
|
3302 |
|
| 3299 |
state->setFillColor(glyph_color); |
3303 |
state->setFillColor(glyph_color); |
| 3300 |
out->updateFillColor(state); |
3304 |
out->updateFillColor(state); |
|
|
3305 |
word->font->gfxFont->incRefCnt(); |
| 3301 |
state->setFont(word->font->gfxFont, word->fontSize); |
3306 |
state->setFont(word->font->gfxFont, word->fontSize); |
| 3302 |
out->updateFont(state); |
3307 |
out->updateFont(state); |
| 3303 |
|
3308 |
|