| 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_SRC_FGAS_FONT_FGAS_GEFONT_H_ | 7 #ifndef XFA_FGAS_FONT_FGAS_GEFONT_H_ |
| 8 #define XFA_SRC_FGAS_FONT_FGAS_GEFONT_H_ | 8 #define XFA_FGAS_FONT_FGAS_GEFONT_H_ |
| 9 | 9 |
| 10 #include "xfa/src/fgas/crt/fgas_utils.h" | 10 #include "xfa/fgas/crt/fgas_utils.h" |
| 11 #include "xfa/src/fgas/font/fgas_font.h" | 11 #include "xfa/fgas/font/fgas_font.h" |
| 12 | 12 |
| 13 #define FXFONT_SUBST_ITALIC 0x02 | 13 #define FXFONT_SUBST_ITALIC 0x02 |
| 14 | 14 |
| 15 class CFX_GEFont : public IFX_Font { | 15 class CFX_GEFont : public IFX_Font { |
| 16 public: | 16 public: |
| 17 CFX_GEFont(const CFX_GEFont& src, FX_DWORD dwFontStyles); | 17 CFX_GEFont(const CFX_GEFont& src, FX_DWORD dwFontStyles); |
| 18 CFX_GEFont(IFX_FontMgr* pFontMgr); | 18 CFX_GEFont(IFX_FontMgr* pFontMgr); |
| 19 ~CFX_GEFont(); | 19 ~CFX_GEFont(); |
| 20 virtual void Release(); | 20 virtual void Release(); |
| 21 virtual IFX_Font* Retain(); | 21 virtual IFX_Font* Retain(); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 FX_BOOL GetCharWidth(FX_WCHAR wUnicode, | 82 FX_BOOL GetCharWidth(FX_WCHAR wUnicode, |
| 83 int32_t& iWidth, | 83 int32_t& iWidth, |
| 84 FX_BOOL bRecursive, | 84 FX_BOOL bRecursive, |
| 85 FX_BOOL bCharCode = FALSE); | 85 FX_BOOL bCharCode = FALSE); |
| 86 int32_t GetGlyphIndex(FX_WCHAR wUnicode, | 86 int32_t GetGlyphIndex(FX_WCHAR wUnicode, |
| 87 FX_BOOL bRecursive, | 87 FX_BOOL bRecursive, |
| 88 IFX_Font** ppFont, | 88 IFX_Font** ppFont, |
| 89 FX_BOOL bCharCode = FALSE); | 89 FX_BOOL bCharCode = FALSE); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 #endif // XFA_SRC_FGAS_FONT_FGAS_GEFONT_H_ | 92 #endif // XFA_FGAS_FONT_FGAS_GEFONT_H_ |
| OLD | NEW |