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 CORE_INCLUDE_FXGE_FX_FONT_H_ | 7 #ifndef CORE_INCLUDE_FXGE_FX_FONT_H_ |
8 #define CORE_INCLUDE_FXGE_FX_FONT_H_ | 8 #define CORE_INCLUDE_FXGE_FX_FONT_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 CFX_ByteString GetFaceName() const; | 84 CFX_ByteString GetFaceName() const; |
85 FX_BOOL IsTTFont() const; | 85 FX_BOOL IsTTFont() const; |
86 FX_BOOL GetBBox(FX_RECT& bbox); | 86 FX_BOOL GetBBox(FX_RECT& bbox); |
87 int GetHeight() const; | 87 int GetHeight() const; |
88 int GetULPos() const; | 88 int GetULPos() const; |
89 int GetULthickness() const; | 89 int GetULthickness() const; |
90 int GetMaxAdvanceWidth() const; | 90 int GetMaxAdvanceWidth() const; |
91 FX_BOOL IsEmbedded() const { return m_bEmbedded; } | 91 FX_BOOL IsEmbedded() const { return m_bEmbedded; } |
92 uint8_t* GetSubData() const { return m_pGsubData; } | 92 uint8_t* GetSubData() const { return m_pGsubData; } |
93 void SetSubData(uint8_t* data) { m_pGsubData = data; } | 93 void SetSubData(uint8_t* data) { m_pGsubData = data; } |
| 94 void* GetPlatformFont() const { return m_pPlatformFont; } |
| 95 void SetPlatformFont(void* font) { m_pPlatformFont = font; } |
| 96 uint8_t* GetFontData() const { return m_pFontData; } |
| 97 FX_DWORD GetSize() const { return m_dwSize; } |
94 void AdjustMMParams(int glyph_index, int width, int weight); | 98 void AdjustMMParams(int glyph_index, int width, int weight); |
95 | 99 |
96 private: | 100 private: |
97 void ReleasePlatformResource(); | 101 void ReleasePlatformResource(); |
98 void DeleteFace(); | 102 void DeleteFace(); |
99 | 103 |
100 FXFT_Face m_Face; | 104 FXFT_Face m_Face; |
101 CFX_SubstFont* m_pSubstFont; | 105 CFX_SubstFont* m_pSubstFont; |
102 uint8_t* m_pFontDataAllocation; | 106 uint8_t* m_pFontDataAllocation; |
103 uint8_t* m_pFontData; | 107 uint8_t* m_pFontData; |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 class IFX_GSUBTable { | 430 class IFX_GSUBTable { |
427 public: | 431 public: |
428 static IFX_GSUBTable* Create(CFX_Font* pFont); | 432 static IFX_GSUBTable* Create(CFX_Font* pFont); |
429 virtual FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) = 0; | 433 virtual FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) = 0; |
430 | 434 |
431 protected: | 435 protected: |
432 virtual ~IFX_GSUBTable() {} | 436 virtual ~IFX_GSUBTable() {} |
433 }; | 437 }; |
434 | 438 |
435 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_ | 439 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_ |
OLD | NEW |