diff options
Diffstat (limited to 'xfa/fgas')
-rw-r--r-- | xfa/fgas/font/cfgas_defaultfontmanager.cpp | 6 | ||||
-rw-r--r-- | xfa/fgas/font/cfgas_defaultfontmanager.h | 16 |
2 files changed, 11 insertions, 11 deletions
diff --git a/xfa/fgas/font/cfgas_defaultfontmanager.cpp b/xfa/fgas/font/cfgas_defaultfontmanager.cpp index fcaf6fdffe..4380c4e4df 100644 --- a/xfa/fgas/font/cfgas_defaultfontmanager.cpp +++ b/xfa/fgas/font/cfgas_defaultfontmanager.cpp @@ -9,10 +9,7 @@ #include "xfa/fgas/font/cfgas_gefont.h" #include "xfa/fgas/font/fgas_fontutils.h" -CFGAS_DefaultFontManager::CFGAS_DefaultFontManager() {} - -CFGAS_DefaultFontManager::~CFGAS_DefaultFontManager() {} - +// static RetainPtr<CFGAS_GEFont> CFGAS_DefaultFontManager::GetFont( CFGAS_FontMgr* pFontMgr, const WideStringView& wsFontFamily, @@ -55,6 +52,7 @@ RetainPtr<CFGAS_GEFont> CFGAS_DefaultFontManager::GetFont( return pFont; } +// static RetainPtr<CFGAS_GEFont> CFGAS_DefaultFontManager::GetDefaultFont( CFGAS_FontMgr* pFontMgr, const WideStringView& wsFontFamily, diff --git a/xfa/fgas/font/cfgas_defaultfontmanager.h b/xfa/fgas/font/cfgas_defaultfontmanager.h index 3d723d5e14..e1b36be386 100644 --- a/xfa/fgas/font/cfgas_defaultfontmanager.h +++ b/xfa/fgas/font/cfgas_defaultfontmanager.h @@ -15,15 +15,17 @@ class CFGAS_FontMgr; class CFGAS_DefaultFontManager { public: - CFGAS_DefaultFontManager(); - ~CFGAS_DefaultFontManager(); - - RetainPtr<CFGAS_GEFont> GetFont(CFGAS_FontMgr* pFontMgr, - const WideStringView& wsFontFamily, - uint32_t dwFontStyles); - RetainPtr<CFGAS_GEFont> GetDefaultFont(CFGAS_FontMgr* pFontMgr, + static RetainPtr<CFGAS_GEFont> GetFont(CFGAS_FontMgr* pFontMgr, const WideStringView& wsFontFamily, uint32_t dwFontStyles); + static RetainPtr<CFGAS_GEFont> GetDefaultFont( + CFGAS_FontMgr* pFontMgr, + const WideStringView& wsFontFamily, + uint32_t dwFontStyles); + + CFGAS_DefaultFontManager() = delete; + CFGAS_DefaultFontManager(const CFGAS_DefaultFontManager&) = delete; + CFGAS_DefaultFontManager& operator=(const CFGAS_DefaultFontManager&) = delete; }; #endif // XFA_FGAS_FONT_CFGAS_DEFAULTFONTMANAGER_H_ |