| Index: core/fpdfapi/fpdf_render/fpdf_render_text.cpp
|
| diff --git a/core/fpdfapi/fpdf_render/fpdf_render_text.cpp b/core/fpdfapi/fpdf_render/fpdf_render_text.cpp
|
| index d8d416dd394b0d3e33113aa121cca52ec7678dee..cc9c751b32e22c4a6a1e658c1d7f634f7d95a153 100644
|
| --- a/core/fpdfapi/fpdf_render/fpdf_render_text.cpp
|
| +++ b/core/fpdfapi/fpdf_render/fpdf_render_text.cpp
|
| @@ -764,7 +764,7 @@ void CPDF_RenderStatus::DrawTextPathWithPattern(const CPDF_TextObject* textobj,
|
| pCache = CFX_GEModule::Get()->GetFontCache();
|
| }
|
| CFX_FaceCache* pFaceCache = pCache->GetCachedFace(&pFont->m_Font);
|
| - FX_FONTCACHE_DEFINE(pCache, &pFont->m_Font);
|
| + CFX_AutoFontCache autoFontCache(pCache, &pFont->m_Font);
|
| CPDF_CharPosList CharPosList;
|
| CharPosList.Load(textobj->m_nChars, textobj->m_pCharCodes,
|
| textobj->m_pCharPos, pFont, font_size);
|
|
|