| Index: core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp
|
| diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp
|
| index 756e08646ab4bf25dbd2598d5bd90d5fd1b6d52f..85b026f8e85aa3039830d303417a2b7431b41ac8 100644
|
| --- a/core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp
|
| +++ b/core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp
|
| @@ -261,12 +261,12 @@ CPDF_Font* CPDF_DocPageData::GetStandardFont(const CFX_ByteStringC& fontName,
|
| continue;
|
| if (pFont->IsEmbedded())
|
| continue;
|
| - if (pFont->GetFontType() != PDFFONT_TYPE1)
|
| + if (!pFont->IsType1Font())
|
| continue;
|
| if (pFont->GetFontDict()->KeyExist("Widths"))
|
| continue;
|
|
|
| - CPDF_Type1Font* pT1Font = pFont->GetType1Font();
|
| + CPDF_Type1Font* pT1Font = pFont->AsType1Font();
|
| if (pEncoding && !pT1Font->GetEncoding()->IsIdentical(pEncoding))
|
| continue;
|
|
|
|
|