Index: core/include/fxge/fx_font.h |
diff --git a/core/include/fxge/fx_font.h b/core/include/fxge/fx_font.h |
index 50cbba8e265b3d54f6d42397aa426a453f260869..82ea21deb605a03e58af95df20142a30a6650436 100644 |
--- a/core/include/fxge/fx_font.h |
+++ b/core/include/fxge/fx_font.h |
@@ -14,13 +14,13 @@ |
typedef struct FT_FaceRec_* FXFT_Face; |
typedef void* FXFT_Library; |
-class IFX_FontEncoding; |
class CFX_PathData; |
Tom Sepez
2015/08/14 19:59:18
nit: alphabetize while we're at it.
Lei Zhang
2015/08/14 21:23:49
Done.
|
class CFX_SubstFont; |
class CFX_FaceCache; |
class CFX_FontMapper; |
class IFX_SystemFontInfo; |
class CFontFileFaceInfo; |
+ |
#define FXFONT_FIXED_PITCH 0x01 |
#define FXFONT_SERIF 0x02 |
#define FXFONT_SYMBOLIC 0x04 |
@@ -133,6 +133,7 @@ class CFX_Font { |
}; |
#define ENCODING_INTERNAL 0 |
#define ENCODING_UNICODE 1 |
+ |
class IFX_FontEncoding { |
public: |
virtual ~IFX_FontEncoding() {} |
@@ -143,6 +144,7 @@ class IFX_FontEncoding { |
virtual FX_DWORD CharCodeFromUnicode(FX_WCHAR Unicode) const = 0; |
}; |
+ |
IFX_FontEncoding* FXGE_CreateUnicodeEncoding(CFX_Font* pFont); |
#define FXFONT_SUBST_MM 0x01 |
#define FXFONT_SUBST_GLYPHPATH 0x04 |
@@ -228,20 +230,26 @@ class CFX_FontMgr { |
FXFT_Library m_FTLibrary; |
FoxitFonts m_ExternalFonts[16]; |
}; |
+ |
class IFX_FontEnumerator { |
public: |
- virtual ~IFX_FontEnumerator() {} |
- |
virtual void HitFont() = 0; |
virtual void Finish() = 0; |
+ |
+ protected: |
+ virtual ~IFX_FontEnumerator() {} |
}; |
+ |
class IFX_AdditionalFontEnum { |
public: |
- virtual ~IFX_AdditionalFontEnum() {} |
virtual int CountFiles() = 0; |
virtual IFX_FileStream* GetFontFile(int index) = 0; |
+ |
+ protected: |
+ virtual ~IFX_AdditionalFontEnum() {} |
}; |
+ |
class CFX_FontMapper { |
public: |
CFX_FontMapper(CFX_FontMgr* mgr); |
@@ -283,6 +291,7 @@ class CFX_FontMapper { |
IFX_FontEnumerator* m_pFontEnumerator; |
CFX_FontMgr* const m_pFontMgr; |
}; |
+ |
class IFX_SystemFontInfo { |
public: |
static IFX_SystemFontInfo* CreateDefault(const char** pUserPaths); |
@@ -307,8 +316,9 @@ class IFX_SystemFontInfo { |
virtual void* RetainFont(void* hFont) { return NULL; } |
protected: |
- ~IFX_SystemFontInfo() {} |
+ virtual ~IFX_SystemFontInfo() {} |
}; |
+ |
class CFX_FolderFontInfo : public IFX_SystemFontInfo { |
public: |
CFX_FolderFontInfo(); |
@@ -431,11 +441,14 @@ FX_RECT FXGE_GetGlyphsBBox(FXTEXT_GLYPHPOS* pGlyphAndPos, |
int anti_alias, |
FX_FLOAT retinaScaleX = 1.0f, |
FX_FLOAT retinaScaleY = 1.0f); |
+ |
class IFX_GSUBTable { |
public: |
static IFX_GSUBTable* Create(CFX_Font* pFont); |
- virtual ~IFX_GSUBTable() {} |
virtual FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) = 0; |
+ |
+ protected: |
+ virtual ~IFX_GSUBTable() {} |
}; |
#endif // CORE_INCLUDE_FXGE_FX_FONT_H_ |