| 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_GEFONT_H_ | 7 #ifndef XFA_FGAS_FONT_FGAS_GEFONT_H_ |
| 8 #define XFA_FGAS_FONT_FGAS_GEFONT_H_ | 8 #define XFA_FGAS_FONT_FGAS_GEFONT_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual int32_t GetGlyphIndex(FX_WCHAR wUnicode, FX_BOOL bCharCode = FALSE); | 42 virtual int32_t GetGlyphIndex(FX_WCHAR wUnicode, FX_BOOL bCharCode = FALSE); |
| 43 virtual int32_t GetAscent() const; | 43 virtual int32_t GetAscent() const; |
| 44 virtual int32_t GetDescent() const; | 44 virtual int32_t GetDescent() const; |
| 45 virtual FX_BOOL GetCharBBox(FX_WCHAR wUnicode, | 45 virtual FX_BOOL GetCharBBox(FX_WCHAR wUnicode, |
| 46 CFX_Rect& bbox, | 46 CFX_Rect& bbox, |
| 47 FX_BOOL bCharCode = FALSE); | 47 FX_BOOL bCharCode = FALSE); |
| 48 virtual FX_BOOL GetBBox(CFX_Rect& bbox); | 48 virtual FX_BOOL GetBBox(CFX_Rect& bbox); |
| 49 virtual int32_t GetItalicAngle() const; | 49 virtual int32_t GetItalicAngle() const; |
| 50 virtual void Reset(); | 50 virtual void Reset(); |
| 51 virtual IFGAS_Font* GetSubstFont(int32_t iGlyphIndex) const; | 51 virtual IFGAS_Font* GetSubstFont(int32_t iGlyphIndex) const; |
| 52 virtual void* GetDevFont() const { return (void*)m_pFont; } | 52 virtual CFX_Font* GetDevFont() const { return m_pFont; } |
| 53 virtual void SetFontProvider(CXFA_PDFFontMgr* pProvider) { | 53 virtual void SetFontProvider(CXFA_PDFFontMgr* pProvider) { |
| 54 m_pProvider = pProvider; | 54 m_pProvider = pProvider; |
| 55 } | 55 } |
| 56 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 56 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
| 57 virtual void SetLogicalFontStyle(uint32_t dwLogFontStyle) { | 57 virtual void SetLogicalFontStyle(uint32_t dwLogFontStyle) { |
| 58 m_bUseLogFontStyle = TRUE; | 58 m_bUseLogFontStyle = TRUE; |
| 59 m_dwLogFontStyle = dwLogFontStyle; | 59 m_dwLogFontStyle = dwLogFontStyle; |
| 60 } | 60 } |
| 61 #endif | 61 #endif |
| 62 | 62 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 88 int32_t& iWidth, | 88 int32_t& iWidth, |
| 89 FX_BOOL bRecursive, | 89 FX_BOOL bRecursive, |
| 90 FX_BOOL bCharCode = FALSE); | 90 FX_BOOL bCharCode = FALSE); |
| 91 int32_t GetGlyphIndex(FX_WCHAR wUnicode, | 91 int32_t GetGlyphIndex(FX_WCHAR wUnicode, |
| 92 FX_BOOL bRecursive, | 92 FX_BOOL bRecursive, |
| 93 IFGAS_Font** ppFont, | 93 IFGAS_Font** ppFont, |
| 94 FX_BOOL bCharCode = FALSE); | 94 FX_BOOL bCharCode = FALSE); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 #endif // XFA_FGAS_FONT_FGAS_GEFONT_H_ | 97 #endif // XFA_FGAS_FONT_FGAS_GEFONT_H_ |
| OLD | NEW |