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 XFA_FGAS_FONT_FGAS_FONT_H_ | 7 #ifndef XFA_FGAS_FONT_FGAS_FONT_H_ |
8 #define XFA_FGAS_FONT_FGAS_FONT_H_ | 8 #define XFA_FGAS_FONT_FGAS_FONT_H_ |
9 | 9 |
10 #include "core/fxge/include/fx_font.h" | 10 #include "core/fxge/include/fx_font.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 uint32_t dwFontStyles, | 98 uint32_t dwFontStyles, |
99 const FX_WCHAR* pszFontFamily = NULL) = 0; | 99 const FX_WCHAR* pszFontFamily = NULL) = 0; |
100 virtual CFGAS_GEFont* GetDefFontByLanguage( | 100 virtual CFGAS_GEFont* GetDefFontByLanguage( |
101 uint16_t wLanguage, | 101 uint16_t wLanguage, |
102 uint32_t dwFontStyles, | 102 uint32_t dwFontStyles, |
103 const FX_WCHAR* pszFontFamily = NULL) = 0; | 103 const FX_WCHAR* pszFontFamily = NULL) = 0; |
104 virtual CFGAS_GEFont* LoadFont(const FX_WCHAR* pszFontFamily, | 104 virtual CFGAS_GEFont* LoadFont(const FX_WCHAR* pszFontFamily, |
105 uint32_t dwFontStyles, | 105 uint32_t dwFontStyles, |
106 uint16_t wCodePage = 0xFFFF) = 0; | 106 uint16_t wCodePage = 0xFFFF) = 0; |
107 virtual CFGAS_GEFont* LoadFont(const uint8_t* pBuffer, int32_t iLength) = 0; | 107 virtual CFGAS_GEFont* LoadFont(const uint8_t* pBuffer, int32_t iLength) = 0; |
108 virtual CFGAS_GEFont* LoadFont(const FX_WCHAR* pszFileName) = 0; | |
109 virtual CFGAS_GEFont* LoadFont(IFX_Stream* pFontStream, | 108 virtual CFGAS_GEFont* LoadFont(IFX_Stream* pFontStream, |
110 const FX_WCHAR* pszFontAlias = NULL, | 109 const FX_WCHAR* pszFontAlias = NULL, |
111 uint32_t dwFontStyles = 0, | 110 uint32_t dwFontStyles = 0, |
112 uint16_t wCodePage = 0, | 111 uint16_t wCodePage = 0, |
113 FX_BOOL bSaveStream = FALSE) = 0; | 112 FX_BOOL bSaveStream = FALSE) = 0; |
114 virtual CFGAS_GEFont* LoadFont(CFGAS_GEFont* pSrcFont, | 113 virtual CFGAS_GEFont* LoadFont(CFGAS_GEFont* pSrcFont, |
115 uint32_t dwFontStyles, | 114 uint32_t dwFontStyles, |
116 uint16_t wCodePage = 0xFFFF) = 0; | 115 uint16_t wCodePage = 0xFFFF) = 0; |
117 virtual void ClearFontCache() = 0; | 116 virtual void ClearFontCache() = 0; |
118 virtual void RemoveFont(CFGAS_GEFont* pFont) = 0; | 117 virtual void RemoveFont(CFGAS_GEFont* pFont) = 0; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 uint32_t dwFontStyles, | 154 uint32_t dwFontStyles, |
156 const FX_WCHAR* pszFontFamily = NULL) = 0; | 155 const FX_WCHAR* pszFontFamily = NULL) = 0; |
157 virtual CFGAS_GEFont* GetFontByUnicode( | 156 virtual CFGAS_GEFont* GetFontByUnicode( |
158 FX_WCHAR wUnicode, | 157 FX_WCHAR wUnicode, |
159 uint32_t dwFontStyles, | 158 uint32_t dwFontStyles, |
160 const FX_WCHAR* pszFontFamily = NULL) = 0; | 159 const FX_WCHAR* pszFontFamily = NULL) = 0; |
161 virtual CFGAS_GEFont* GetFontByLanguage( | 160 virtual CFGAS_GEFont* GetFontByLanguage( |
162 uint16_t wLanguage, | 161 uint16_t wLanguage, |
163 uint32_t dwFontStyles, | 162 uint32_t dwFontStyles, |
164 const FX_WCHAR* pszFontFamily = NULL) = 0; | 163 const FX_WCHAR* pszFontFamily = NULL) = 0; |
165 virtual CFGAS_GEFont* LoadFont(const uint8_t* pBuffer, | |
166 int32_t iLength, | |
167 int32_t iFaceIndex, | |
168 int32_t* pFaceCount = NULL) = 0; | |
169 virtual CFGAS_GEFont* LoadFont(const FX_WCHAR* pszFileName, | |
170 int32_t iFaceIndex, | |
171 int32_t* pFaceCount = NULL) = 0; | |
172 virtual CFGAS_GEFont* LoadFont(IFX_Stream* pFontStream, | |
173 int32_t iFaceIndex, | |
174 int32_t* pFaceCount = NULL, | |
175 FX_BOOL bSaveStream = FALSE) = 0; | |
176 | |
177 virtual void ClearFontCache() = 0; | 164 virtual void ClearFontCache() = 0; |
178 virtual void RemoveFont(CFGAS_GEFont* pFont) = 0; | 165 virtual void RemoveFont(CFGAS_GEFont* pFont) = 0; |
179 }; | 166 }; |
180 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 167 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
181 | 168 |
182 #endif // XFA_FGAS_FONT_FGAS_FONT_H_ | 169 #endif // XFA_FGAS_FONT_FGAS_FONT_H_ |
OLD | NEW |