summaryrefslogtreecommitdiff
path: root/core/include/fxge/fx_font.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-20 10:22:56 -0700
committerLei Zhang <thestig@chromium.org>2015-10-20 10:22:56 -0700
commitc29bee029cd5fe3f8a4ceb580235ac2d0e5ce8fd (patch)
tree037f934729035eb708ca20bc1798382c3b0376c6 /core/include/fxge/fx_font.h
parent4816432671eef6467354aa252f22bb80acc315b7 (diff)
downloadpdfium-c29bee029cd5fe3f8a4ceb580235ac2d0e5ce8fd.tar.xz
Make CFX_FontMgr member variables private.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1405213003 .
Diffstat (limited to 'core/include/fxge/fx_font.h')
-rw-r--r--core/include/fxge/fx_font.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/core/include/fxge/fx_font.h b/core/include/fxge/fx_font.h
index f36801584d..d4f7a5dc04 100644
--- a/core/include/fxge/fx_font.h
+++ b/core/include/fxge/fx_font.h
@@ -9,6 +9,7 @@
#include <map>
+#include "../../../third_party/base/nonstd_unique_ptr.h"
#include "../fxcrt/fx_system.h"
#include "fx_dib.h"
@@ -176,7 +177,7 @@ class CFX_FontMgr {
public:
CFX_FontMgr();
~CFX_FontMgr();
- void InitFTLibrary();
+
FXFT_Face GetCachedFace(const CFX_ByteString& face_name,
int weight,
FX_BOOL bItalic,
@@ -207,13 +208,17 @@ class CFX_FontMgr {
int italic_angle,
int CharsetCP,
CFX_SubstFont* pSubstFont);
- void FreeCache();
FX_BOOL GetStandardFont(const uint8_t*& pFontData, FX_DWORD& size, int index);
- CFX_FontMapper* m_pBuiltinMapper;
+ CFX_FontMapper* GetBuiltinMapper() const { return m_pBuiltinMapper.get(); }
+ FXFT_Library GetFTLibrary() const { return m_FTLibrary; }
+
+ private:
+ void InitFTLibrary();
+
+ nonstd::unique_ptr<CFX_FontMapper> m_pBuiltinMapper;
std::map<CFX_ByteString, CTTFontDesc*> m_FaceMap;
FXFT_Library m_FTLibrary;
- FoxitFonts m_ExternalFonts[16];
};
class IFX_FontEnumerator {