summaryrefslogtreecommitdiff
path: root/core/include/fxge
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-08-17 15:05:46 -0700
committerLei Zhang <thestig@chromium.org>2015-08-17 15:05:46 -0700
commit52a48aadc19b2dee8abeb702269bb168eb6b6999 (patch)
treee3a77486e920c04abe2f0890c1baa70399d5ab80 /core/include/fxge
parent9494421208674d2c57a9f864d342f017c0b20902 (diff)
downloadpdfium-52a48aadc19b2dee8abeb702269bb168eb6b6999.tar.xz
Cleanup CFX_UnicodeEncoding and remove IFX_FontEncoding.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1296753003 .
Diffstat (limited to 'core/include/fxge')
-rw-r--r--core/include/fxge/fx_font.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/include/fxge/fx_font.h b/core/include/fxge/fx_font.h
index 8e0f5a1615..d9b557a87b 100644
--- a/core/include/fxge/fx_font.h
+++ b/core/include/fxge/fx_font.h
@@ -134,18 +134,18 @@ class CFX_Font {
#define ENCODING_INTERNAL 0
#define ENCODING_UNICODE 1
-class IFX_FontEncoding {
+class CFX_UnicodeEncoding {
public:
- virtual ~IFX_FontEncoding() {}
+ explicit CFX_UnicodeEncoding(CFX_Font* pFont);
+ ~CFX_UnicodeEncoding();
- virtual FX_DWORD GlyphFromCharCode(FX_DWORD charcode) = 0;
+ FX_DWORD GlyphFromCharCode(FX_DWORD charcode);
- virtual CFX_WideString UnicodeFromCharCode(FX_DWORD charcode) const = 0;
-
- virtual FX_DWORD CharCodeFromUnicode(FX_WCHAR Unicode) const = 0;
+ private:
+ // Unowned, not nullptr.
+ CFX_Font* m_pFont;
};
-IFX_FontEncoding* FXGE_CreateUnicodeEncoding(CFX_Font* pFont);
#define FXFONT_SUBST_MM 0x01
#define FXFONT_SUBST_GLYPHPATH 0x04
#define FXFONT_SUBST_CLEARTYPE 0x08