Index: core/fxge/ge/fx_ge_font.cpp |
diff --git a/core/src/fxge/ge/fx_ge_font.cpp b/core/fxge/ge/fx_ge_font.cpp |
similarity index 96% |
rename from core/src/fxge/ge/fx_ge_font.cpp |
rename to core/fxge/ge/fx_ge_font.cpp |
index 672c28d86b5eef1eb1db685a826e37a12dc9b9c6..14783085aceeb751d614d374dd9d3bfd5123c457 100644 |
--- a/core/src/fxge/ge/fx_ge_font.cpp |
+++ b/core/fxge/ge/fx_ge_font.cpp |
@@ -4,9 +4,9 @@ |
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
+#include "core/fxge/ge/fx_text_int.h" |
#include "core/include/fxge/fx_freetype.h" |
#include "core/include/fxge/fx_ge.h" |
-#include "core/src/fxge/ge/fx_text_int.h" |
#define EM_ADJUST(em, a) (em == 0 ? (a) : (a)*1000 / em) |
@@ -20,19 +20,13 @@ namespace { |
#ifdef PDF_ENABLE_XFA |
const FX_DWORD g_EncodingID[] = { |
- FXFM_ENCODING_MS_SYMBOL, |
- FXFM_ENCODING_UNICODE, |
- FXFM_ENCODING_MS_SJIS, |
- FXFM_ENCODING_MS_GB2312, |
- FXFM_ENCODING_MS_BIG5, |
- FXFM_ENCODING_MS_WANSUNG, |
- FXFM_ENCODING_MS_JOHAB, |
- FXFM_ENCODING_ADOBE_STANDARD, |
- FXFM_ENCODING_ADOBE_EXPERT, |
- FXFM_ENCODING_ADOBE_CUSTOM, |
- FXFM_ENCODING_ADOBE_LATIN_1, |
- FXFM_ENCODING_OLD_LATIN_2, |
- FXFM_ENCODING_APPLE_ROMAN, |
+ FXFM_ENCODING_MS_SYMBOL, FXFM_ENCODING_UNICODE, |
+ FXFM_ENCODING_MS_SJIS, FXFM_ENCODING_MS_GB2312, |
+ FXFM_ENCODING_MS_BIG5, FXFM_ENCODING_MS_WANSUNG, |
+ FXFM_ENCODING_MS_JOHAB, FXFM_ENCODING_ADOBE_STANDARD, |
+ FXFM_ENCODING_ADOBE_EXPERT, FXFM_ENCODING_ADOBE_CUSTOM, |
+ FXFM_ENCODING_ADOBE_LATIN_1, FXFM_ENCODING_OLD_LATIN_2, |
+ FXFM_ENCODING_APPLE_ROMAN, |
}; |
CFX_UnicodeEncodingEx* _FXFM_CreateFontEncoding(CFX_Font* pFont, |
@@ -456,11 +450,9 @@ int CFX_Font::GetULthickness() const { |
FXFT_Get_Face_UnderLineThickness(m_Face)); |
} |
-CFX_UnicodeEncoding::CFX_UnicodeEncoding(CFX_Font* pFont) : m_pFont(pFont) { |
-} |
+CFX_UnicodeEncoding::CFX_UnicodeEncoding(CFX_Font* pFont) : m_pFont(pFont) {} |
-CFX_UnicodeEncoding::~CFX_UnicodeEncoding() { |
-} |
+CFX_UnicodeEncoding::~CFX_UnicodeEncoding() {} |
FX_DWORD CFX_UnicodeEncoding::GlyphFromCharCode(FX_DWORD charcode) { |
FXFT_Face face = m_pFont->GetFace(); |
@@ -483,11 +475,9 @@ FX_DWORD CFX_UnicodeEncoding::GlyphFromCharCode(FX_DWORD charcode) { |
#ifdef PDF_ENABLE_XFA |
CFX_UnicodeEncodingEx::CFX_UnicodeEncodingEx(CFX_Font* pFont, |
FX_DWORD EncodingID) |
- : CFX_UnicodeEncoding(pFont), m_nEncodingID(EncodingID) { |
-} |
+ : CFX_UnicodeEncoding(pFont), m_nEncodingID(EncodingID) {} |
-CFX_UnicodeEncodingEx::~CFX_UnicodeEncodingEx() { |
-} |
+CFX_UnicodeEncodingEx::~CFX_UnicodeEncodingEx() {} |
FX_DWORD CFX_UnicodeEncodingEx::GlyphFromCharCode(FX_DWORD charcode) { |
FXFT_Face face = m_pFont->GetFace(); |