OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef _FX_FONT | 7 #ifndef _FX_FONT |
8 #define _FX_FONT | 8 #define _FX_FONT |
9 class IFX_Font; | 9 class IFX_Font; |
10 class IFX_FontMgr; | 10 class IFX_FontMgr; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 virtual FX_INT32 GetItalicAngle() const = 0; | 66 virtual FX_INT32 GetItalicAngle() const = 0; |
67 virtual void Reset() = 0; | 67 virtual void Reset() = 0; |
68 virtual IFX_Font* GetSubstFont(FX_INT32 iGlyphIndex) const = 0; | 68 virtual IFX_Font* GetSubstFont(FX_INT32 iGlyphIndex) const = 0; |
69 virtual void* GetDevFont() const = 0; | 69 virtual void* GetDevFont() const = 0; |
70 virtual void SetFontProvider(IFX_FontProvider* pProvi
der) = 0; | 70 virtual void SetFontProvider(IFX_FontProvider* pProvi
der) = 0; |
71 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 71 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
72 virtual void SetLogicalFontStyle(FX_DWORD dwLogFontSt
yle) = 0; | 72 virtual void SetLogicalFontStyle(FX_DWORD dwLogFontSt
yle) = 0; |
73 #endif | 73 #endif |
74 }; | 74 }; |
75 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 75 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
76 typedef struct _FX_FONTMATCHPARAMS : public CFX_Object { | 76 typedef struct _FX_FONTMATCHPARAMS { |
77 FX_LPCWSTR pwsFamily; | 77 FX_LPCWSTR pwsFamily; |
78 FX_DWORD dwFontStyles; | 78 FX_DWORD dwFontStyles; |
79 FX_DWORD dwUSB; | 79 FX_DWORD dwUSB; |
80 FX_DWORD dwMatchFlags; | 80 FX_DWORD dwMatchFlags; |
81 FX_WCHAR wUnicode; | 81 FX_WCHAR wUnicode; |
82 FX_WORD wCodePage; | 82 FX_WORD wCodePage; |
83 } FX_FONTMATCHPARAMS, * FX_LPFONTMATCHPARAMS; | 83 } FX_FONTMATCHPARAMS, * FX_LPFONTMATCHPARAMS; |
84 typedef FX_FONTMATCHPARAMS const * FX_LPCFONTMATCHPARAMS; | 84 typedef FX_FONTMATCHPARAMS const * FX_LPCFONTMATCHPARAMS; |
85 typedef struct _FX_FONTSIGNATURE : public CFX_Target { | 85 typedef struct _FX_FONTSIGNATURE : public CFX_Target { |
86 FX_DWORD fsUsb[4]; | 86 FX_DWORD fsUsb[4]; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 virtual IFX_Font* GetFontByLanguage(FX_WORD wLanguage, FX_DWORD dw
FontStyles, FX_LPCWSTR pszFontFamily = NULL) = 0; | 161 virtual IFX_Font* GetFontByLanguage(FX_WORD wLanguage, FX_DWORD dw
FontStyles, FX_LPCWSTR pszFontFamily = NULL) = 0; |
162 virtual IFX_Font* LoadFont(FX_LPCBYTE pBuffer, FX_INT32 iLength, F
X_INT32 iFaceIndex, FX_INT32* pFaceCount = NULL) = 0; | 162 virtual IFX_Font* LoadFont(FX_LPCBYTE pBuffer, FX_INT32 iLength, F
X_INT32 iFaceIndex, FX_INT32* pFaceCount = NULL) = 0; |
163 virtual IFX_Font* LoadFont(FX_LPCWSTR pszFileName, FX_INT32 iFaceI
ndex, FX_INT32* pFaceCount = NULL) = 0; | 163 virtual IFX_Font* LoadFont(FX_LPCWSTR pszFileName, FX_INT32 iFaceI
ndex, FX_INT32* pFaceCount = NULL) = 0; |
164 virtual IFX_Font* LoadFont(IFX_Stream *pFontStream, FX_INT32 iFace
Index, FX_INT32* pFaceCount = NULL, FX_BOOL bSaveStream = FALSE) = 0; | 164 virtual IFX_Font* LoadFont(IFX_Stream *pFontStream, FX_INT32 iFace
Index, FX_INT32* pFaceCount = NULL, FX_BOOL bSaveStream = FALSE) = 0; |
165 | 165 |
166 virtual void ClearFontCache() = 0; | 166 virtual void ClearFontCache() = 0; |
167 virtual void RemoveFont(IFX_Font *pFont) = 0; | 167 virtual void RemoveFont(IFX_Font *pFont) = 0; |
168 }; | 168 }; |
169 #endif | 169 #endif |
170 #endif | 170 #endif |
OLD | NEW |