Index: xfa/fxfa/include/xfa_fontmgr.h |
diff --git a/xfa/fxfa/include/xfa_fontmgr.h b/xfa/fxfa/include/xfa_fontmgr.h |
index 2d2a74f2bad05958968faf1acd5147002d7a9bdc..6147dbc5c7369f4c6c479dd3b6ec53fb618cdcea 100644 |
--- a/xfa/fxfa/include/xfa_fontmgr.h |
+++ b/xfa/fxfa/include/xfa_fontmgr.h |
@@ -51,29 +51,30 @@ class CXFA_PDFFontMgr { |
CFGAS_GEFont* GetFont(const CFX_WideStringC& wsFontFamily, |
uint32_t dwFontStyles, |
CPDF_Font** pPDFFont, |
- FX_BOOL bStrictMatch = TRUE); |
- FX_BOOL GetCharWidth(CFGAS_GEFont* pFont, |
- FX_WCHAR wUnicode, |
- int32_t& iWidth, |
- FX_BOOL bCharCode); |
- std::map<CFGAS_GEFont*, CPDF_Font*> m_FDE2PDFFont; |
+ bool bStrictMatch); |
+ bool GetCharWidth(const CFGAS_GEFont* pFont, |
+ FX_WCHAR wUnicode, |
+ bool bCharCode, |
+ int32_t* pWidth); |
+ void SetFont(const CFGAS_GEFont* pFont, CPDF_Font* pPDFFont); |
protected: |
- CFGAS_GEFont* FindFont(CFX_ByteString strFamilyName, |
- FX_BOOL bBold, |
- FX_BOOL bItalic, |
+ CFGAS_GEFont* FindFont(const CFX_ByteString& strFamilyName, |
+ bool bBold, |
+ bool bItalic, |
CPDF_Font** pPDFFont, |
- FX_BOOL bStrictMatch = TRUE); |
+ bool bStrictMatch); |
CFX_ByteString PsNameToFontName(const CFX_ByteString& strPsName, |
- FX_BOOL bBold, |
- FX_BOOL bItalic); |
- FX_BOOL PsNameMatchDRFontName(const CFX_ByteStringC& bsPsName, |
- FX_BOOL bBold, |
- FX_BOOL bItalic, |
- const CFX_ByteString& bsDRFontName, |
- FX_BOOL bStrictMatch = TRUE); |
- |
- CXFA_FFDoc* m_pDoc; |
+ bool bBold, |
+ bool bItalic); |
+ bool PsNameMatchDRFontName(const CFX_ByteStringC& bsPsName, |
+ bool bBold, |
+ bool bItalic, |
+ const CFX_ByteString& bsDRFontName, |
+ bool bStrictMatch); |
+ |
+ CXFA_FFDoc* const m_pDoc; |
+ std::map<const CFGAS_GEFont*, CPDF_Font*> m_FDE2PDFFont; |
std::map<CFX_ByteString, CFGAS_GEFont*> m_FontMap; |
}; |