Index: core/include/fxge/fx_font.h |
diff --git a/core/include/fxge/fx_font.h b/core/include/fxge/fx_font.h |
index ff664f95323bf30a2db8b1d941707794a410a3d6..39149fa519cd778b6930e9b66b89b69653c23893 100644 |
--- a/core/include/fxge/fx_font.h |
+++ b/core/include/fxge/fx_font.h |
@@ -14,11 +14,16 @@ |
typedef struct FT_FaceRec_* FXFT_Face; |
typedef void* FXFT_Library; |
-class CFontFileFaceInfo; |
+ |
class CFX_FaceCache; |
+class CFX_FontFaceInfo; |
class CFX_FontMapper; |
class CFX_PathData; |
+class CFX_SizeGlyphCache; |
class CFX_SubstFont; |
+class CFontFileFaceInfo; |
+class CTTFontDesc; |
+class IFX_FontEncoding; |
class IFX_SystemFontInfo; |
#define FXFONT_FIXED_PITCH 0x01 |
@@ -255,12 +260,11 @@ 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_MapByteStringToPtr m_FaceMap; |
+ std::map<CFX_ByteString, CTTFontDesc*> m_FaceMap; |
FXFT_Library m_FTLibrary; |
FoxitFonts m_ExternalFonts[16]; |
}; |
@@ -398,7 +402,7 @@ class CFX_FolderFontInfo : public IFX_SystemFontInfo { |
FX_BOOL GetFontCharset(void* hFont, int& charset) override; |
protected: |
- CFX_MapByteStringToPtr m_FontList; |
+ std::map<CFX_ByteString, CFX_FontFaceInfo*> m_FontList; |
CFX_ByteStringArray m_PathList; |
CFX_FontMapper* m_pMapper; |
void ScanPath(CFX_ByteString& path); |
@@ -478,7 +482,7 @@ class CFX_FaceCache { |
FX_BOOL bFontStyle, |
int dest_width, |
int anti_alias); |
- CFX_MapByteStringToPtr m_SizeMap; |
+ std::map<CFX_ByteString, CFX_SizeGlyphCache*> m_SizeMap; |
CFX_MapPtrToPtr m_PathMap; |
CFX_DIBitmap* m_pBitmap; |