Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / core / src / fxge / ge / text_int.h
index c8d5596..e51976f 100644 (file)
@@ -101,5 +101,24 @@ public:
     int                                        m_PitchFamily;
     CFX_ByteString             m_FontTables;
 };
-
+class CFX_FontEncodingEX : public IFX_FontEncodingEx\r
+{\r
+public:\r
+    CFX_FontEncodingEX();\r
+    FX_BOOL                    Init(CFX_Font* pFont, FX_DWORD EncodingID);\r
+    virtual FX_DWORD           GlyphIndexFromName(FX_LPCSTR pStrName);\r
+    virtual CFX_ByteString     NameFromGlyphIndex(FX_DWORD dwGlyphIndex);\r
+    virtual FX_DWORD           CharCodeFromGlyphIndex(FX_DWORD dwGlyphIndex);\r
+    virtual FX_DWORD           GlyphFromCharCode(FX_DWORD charcode);\r
+    virtual CFX_WideString     UnicodeFromCharCode(FX_DWORD charcode) const;\r
+    virtual FX_DWORD           CharCodeFromUnicode(FX_WCHAR Unicode) const;\r
+    virtual FX_BOOL                    IsUnicodeCompatible() const;\r
+    virtual FX_DWORD           GlyphFromCharCodeEx(FX_DWORD charcode, int encoding = ENCODING_UNICODE)\r
+    {\r
+        return GlyphFromCharCode(charcode);\r
+    }\r
+private:\r
+    CFX_Font* m_pFont;\r
+    FX_DWORD m_nEncodingID;\r
+};\r
 #endif  // _TEXT_INT_H_