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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 FX_BOOL bCharCode = FALSE) = 0; | 81 FX_BOOL bCharCode = FALSE) = 0; |
82 virtual int32_t GetAscent() const = 0; | 82 virtual int32_t GetAscent() const = 0; |
83 virtual int32_t GetDescent() const = 0; | 83 virtual int32_t GetDescent() const = 0; |
84 virtual FX_BOOL GetCharBBox(FX_WCHAR wUnicode, | 84 virtual FX_BOOL GetCharBBox(FX_WCHAR wUnicode, |
85 CFX_Rect& bbox, | 85 CFX_Rect& bbox, |
86 FX_BOOL bCharCode = FALSE) = 0; | 86 FX_BOOL bCharCode = FALSE) = 0; |
87 virtual FX_BOOL GetBBox(CFX_Rect& bbox) = 0; | 87 virtual FX_BOOL GetBBox(CFX_Rect& bbox) = 0; |
88 virtual int32_t GetItalicAngle() const = 0; | 88 virtual int32_t GetItalicAngle() const = 0; |
89 virtual void Reset() = 0; | 89 virtual void Reset() = 0; |
90 virtual IFGAS_Font* GetSubstFont(int32_t iGlyphIndex) const = 0; | 90 virtual IFGAS_Font* GetSubstFont(int32_t iGlyphIndex) const = 0; |
91 virtual void* GetDevFont() const = 0; | 91 virtual CFX_Font* GetDevFont() const = 0; |
92 virtual void SetFontProvider(CXFA_PDFFontMgr* pProvider) = 0; | 92 virtual void SetFontProvider(CXFA_PDFFontMgr* pProvider) = 0; |
93 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 93 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
94 virtual void SetLogicalFontStyle(uint32_t dwLogFontStyle) = 0; | 94 virtual void SetLogicalFontStyle(uint32_t dwLogFontStyle) = 0; |
95 #endif | 95 #endif |
96 }; | 96 }; |
97 | 97 |
98 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 98 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
99 struct FX_FONTMATCHPARAMS { | 99 struct FX_FONTMATCHPARAMS { |
100 const FX_WCHAR* pwsFamily; | 100 const FX_WCHAR* pwsFamily; |
101 uint32_t dwFontStyles; | 101 uint32_t dwFontStyles; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 int32_t iFaceIndex, | 238 int32_t iFaceIndex, |
239 int32_t* pFaceCount = NULL, | 239 int32_t* pFaceCount = NULL, |
240 FX_BOOL bSaveStream = FALSE) = 0; | 240 FX_BOOL bSaveStream = FALSE) = 0; |
241 | 241 |
242 virtual void ClearFontCache() = 0; | 242 virtual void ClearFontCache() = 0; |
243 virtual void RemoveFont(IFGAS_Font* pFont) = 0; | 243 virtual void RemoveFont(IFGAS_Font* pFont) = 0; |
244 }; | 244 }; |
245 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 245 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
246 | 246 |
247 #endif // XFA_FGAS_FONT_FGAS_FONT_H_ | 247 #endif // XFA_FGAS_FONT_FGAS_FONT_H_ |
OLD | NEW |