Chromium Code Reviews| Index: core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp |
| diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp |
| index 136c3183391a74915b4e85a2a4b0bf3685bb8e5c..053a513a77786a61b812581f027504e5f876e7d4 100644 |
| --- a/core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp |
| +++ b/core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp |
| @@ -664,14 +664,15 @@ void CPDF_TextRenderer::DrawTextString(CFX_RenderDevice* pDevice, |
| } |
| matrix.e = origin_x; |
| matrix.f = origin_y; |
| - if (pFont->GetFontType() == PDFFONT_TYPE3) |
| - ; |
| - else if (stroke_argb == 0) { |
| + if (pFont->GetFontType() == PDFFONT_TYPE3) { |
|
Lei Zhang
2016/02/24 01:37:01
if (pFont->GetFontType() != PDFFONT_TYPE3) {
if
dsinclair
2016/02/24 14:51:08
Done.
|
| + } else if (stroke_argb == 0) { |
| DrawNormalText(pDevice, nChars, pCharCodes, pCharPos, pFont, font_size, |
| &matrix, fill_argb, pOptions); |
| - } else |
| + } else { |
| DrawTextPath(pDevice, nChars, pCharCodes, pCharPos, pFont, font_size, |
| &matrix, NULL, pGraphState, fill_argb, stroke_argb, NULL); |
| + } |
| + |
| if (nChars > 1) { |
| FX_Free(pCharCodes); |
| FX_Free(pCharPos); |