Index: core/fpdfapi/render/fpdf_render_text.cpp |
diff --git a/core/fpdfapi/render/fpdf_render_text.cpp b/core/fpdfapi/render/fpdf_render_text.cpp |
index 26edc1b0f48b5d42a2e56284f000bea8db1f4c12..6cb9ff593b0ba274d84880d5021db7a3c05c6fd2 100644 |
--- a/core/fpdfapi/render/fpdf_render_text.cpp |
+++ b/core/fpdfapi/render/fpdf_render_text.cpp |
@@ -57,20 +57,16 @@ FX_BOOL CPDF_RenderStatus::ProcessText(CPDF_TextObject* textobj, |
break; |
case TextRenderingMode::MODE_STROKE: |
case TextRenderingMode::MODE_STROKE_CLIP: |
- if (pFont->GetFace() || |
- (pFont->GetSubstFont()->m_SubstFlags & FXFONT_SUBST_GLYPHPATH)) { |
+ if (pFont->GetFace()) |
bStroke = true; |
- } else { |
+ else |
bFill = true; |
- } |
break; |
case TextRenderingMode::MODE_FILL_STROKE: |
case TextRenderingMode::MODE_FILL_STROKE_CLIP: |
bFill = true; |
- if (pFont->GetFace() || |
- (pFont->GetSubstFont()->m_SubstFlags & FXFONT_SUBST_GLYPHPATH)) { |
+ if (pFont->GetFace()) |
bStroke = true; |
- } |
break; |
case TextRenderingMode::MODE_INVISIBLE: |
// Already handled above, but the compiler is not smart enough to |