Index: core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp |
diff --git a/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp b/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp |
index 7c85b8213d98e346a074c182e932d177927f1a4e..38406394c4cb883b0974ea7991886e33c0466432 100644 |
--- a/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp |
+++ b/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp |
@@ -1068,6 +1068,18 @@ CPDF_CIDFont::~CPDF_CIDFont() { |
delete m_pTTGSUBTable; |
} |
+bool CPDF_CIDFont::IsCIDFont() const { |
+ return true; |
+} |
+ |
+const CPDF_CIDFont* CPDF_CIDFont::AsCIDFont() const { |
+ return this; |
+} |
+ |
+CPDF_CIDFont* CPDF_CIDFont::AsCIDFont() { |
+ return this; |
+} |
+ |
FX_WORD CPDF_CIDFont::CIDFromCharCode(FX_DWORD charcode) const { |
if (!m_pCMap) { |
return (FX_WORD)charcode; |