diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-10-26 15:26:34 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-10-26 15:26:34 -0700 |
commit | d50b640e42d46ab0f4d69cc58b3ba54e6137749c (patch) | |
tree | c3233d5418de27e68aeee8b06a0da4078d5bab91 /core/include/fxge | |
parent | bf551e3f70124ec9ccd5cf5bfeb8a562823db76e (diff) | |
download | pdfium-d50b640e42d46ab0f4d69cc58b3ba54e6137749c.tar.xz |
Take FOXIT_FACE_COUNT and MM_FACE_COUNT constants from xfa
Make master closer to XFA and eliminate some magic numbers.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1410823005 .
Diffstat (limited to 'core/include/fxge')
-rw-r--r-- | core/include/fxge/fx_font.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/include/fxge/fx_font.h b/core/include/fxge/fx_font.h index 36a739f737..0ab529ef4e 100644 --- a/core/include/fxge/fx_font.h +++ b/core/include/fxge/fx_font.h @@ -262,6 +262,9 @@ class CFX_FontMapper { CFX_SubstFont* pSubstFont); private: + static const size_t MM_FACE_COUNT = 2; + static const size_t FOXIT_FACE_COUNT = 14; + CFX_ByteString GetPSNameFromTT(void* hFont); CFX_ByteString MatchInstalledFonts(const CFX_ByteString& norm_name); FXFT_Face UseInternalSubst(CFX_SubstFont* pSubstFont, @@ -271,12 +274,12 @@ class CFX_FontMapper { int picthfamily); FX_BOOL m_bListLoaded; - FXFT_Face m_MMFaces[2]; + FXFT_Face m_MMFaces[MM_FACE_COUNT]; CFX_ByteString m_LastFamily; CFX_DWordArray m_CharsetArray; CFX_ByteStringArray m_FaceArray; IFX_SystemFontInfo* m_pFontInfo; - FXFT_Face m_FoxitFaces[14]; + FXFT_Face m_FoxitFaces[FOXIT_FACE_COUNT]; IFX_FontEnumerator* m_pFontEnumerator; CFX_FontMgr* const m_pFontMgr; }; |