summaryrefslogtreecommitdiff
path: root/core/fxge/include/fx_font.h
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-08-18 10:55:29 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-18 10:55:29 -0700
commit1a8946b09884393d7dc4941e59b3172a7e473b01 (patch)
tree12bfdaad2b15bd515f8d8fff27c7fe0db63cce2b /core/fxge/include/fx_font.h
parent2eb7c7dd6392488d858989da8d57d618f58f04ca (diff)
downloadpdfium-1a8946b09884393d7dc4941e59b3172a7e473b01.tar.xz
Move CFX_UnicodeEncoding and CFX_UnicodeEncodingEx to their own files.
Review-Url: https://codereview.chromium.org/2260533002
Diffstat (limited to 'core/fxge/include/fx_font.h')
-rw-r--r--core/fxge/include/fx_font.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/core/fxge/include/fx_font.h b/core/fxge/include/fx_font.h
index bb7632d1db..e6ffc6be4b 100644
--- a/core/fxge/include/fx_font.h
+++ b/core/fxge/include/fx_font.h
@@ -156,60 +156,6 @@ class CFX_Font {
FX_BOOL m_bVertical;
};
-#define ENCODING_INTERNAL 0
-#define ENCODING_UNICODE 1
-
-#ifdef PDF_ENABLE_XFA
-#define FXFM_ENC_TAG(a, b, c, d) \
- (((uint32_t)(a) << 24) | ((uint32_t)(b) << 16) | ((uint32_t)(c) << 8) | \
- (uint32_t)(d))
-#define FXFM_ENCODING_NONE FXFM_ENC_TAG(0, 0, 0, 0)
-#define FXFM_ENCODING_MS_SYMBOL FXFM_ENC_TAG('s', 'y', 'm', 'b')
-#define FXFM_ENCODING_UNICODE FXFM_ENC_TAG('u', 'n', 'i', 'c')
-#define FXFM_ENCODING_MS_SJIS FXFM_ENC_TAG('s', 'j', 'i', 's')
-#define FXFM_ENCODING_MS_GB2312 FXFM_ENC_TAG('g', 'b', ' ', ' ')
-#define FXFM_ENCODING_MS_BIG5 FXFM_ENC_TAG('b', 'i', 'g', '5')
-#define FXFM_ENCODING_MS_WANSUNG FXFM_ENC_TAG('w', 'a', 'n', 's')
-#define FXFM_ENCODING_MS_JOHAB FXFM_ENC_TAG('j', 'o', 'h', 'a')
-#define FXFM_ENCODING_ADOBE_STANDARD FXFM_ENC_TAG('A', 'D', 'O', 'B')
-#define FXFM_ENCODING_ADOBE_EXPERT FXFM_ENC_TAG('A', 'D', 'B', 'E')
-#define FXFM_ENCODING_ADOBE_CUSTOM FXFM_ENC_TAG('A', 'D', 'B', 'C')
-#define FXFM_ENCODING_ADOBE_LATIN_1 FXFM_ENC_TAG('l', 'a', 't', '1')
-#define FXFM_ENCODING_OLD_LATIN_2 FXFM_ENC_TAG('l', 'a', 't', '2')
-#define FXFM_ENCODING_APPLE_ROMAN FXFM_ENC_TAG('a', 'r', 'm', 'n')
-#endif // PDF_ENABLE_XFA
-
-class CFX_UnicodeEncoding {
- public:
- explicit CFX_UnicodeEncoding(CFX_Font* pFont);
- virtual ~CFX_UnicodeEncoding();
-
- virtual uint32_t GlyphFromCharCode(uint32_t charcode);
-
- protected:
- // Unowned, not nullptr.
- CFX_Font* m_pFont;
-};
-
-#ifdef PDF_ENABLE_XFA
-class CFX_UnicodeEncodingEx : public CFX_UnicodeEncoding {
- public:
- CFX_UnicodeEncodingEx(CFX_Font* pFont, uint32_t EncodingID);
- ~CFX_UnicodeEncodingEx() override;
-
- // CFX_UnicodeEncoding:
- uint32_t GlyphFromCharCode(uint32_t charcode) override;
-
- uint32_t CharCodeFromUnicode(FX_WCHAR Unicode) const;
-
- private:
- uint32_t m_nEncodingID;
-};
-CFX_UnicodeEncodingEx* FX_CreateFontEncodingEx(
- CFX_Font* pFont,
- uint32_t nEncodingID = FXFM_ENCODING_NONE);
-#endif // PDF_ENABLE_XFA
-
#define FXFONT_SUBST_MM 0x01
#define FXFONT_SUBST_GLYPHPATH 0x04
#define FXFONT_SUBST_CLEARTYPE 0x08