| 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 _FX_FONT | 7 #ifndef XFA_SRC_FGAS_INCLUDE_FX_FNT_H_ |
| 8 #define _FX_FONT | 8 #define XFA_SRC_FGAS_INCLUDE_FX_FNT_H_ |
| 9 |
| 9 class IFX_Font; | 10 class IFX_Font; |
| 10 class IFX_FontMgr; | 11 class IFX_FontMgr; |
| 11 #define FX_FONTSTYLE_Normal 0x00 | 12 #define FX_FONTSTYLE_Normal 0x00 |
| 12 #define FX_FONTSTYLE_FixedPitch 0x01 | 13 #define FX_FONTSTYLE_FixedPitch 0x01 |
| 13 #define FX_FONTSTYLE_Serif 0x02 | 14 #define FX_FONTSTYLE_Serif 0x02 |
| 14 #define FX_FONTSTYLE_Symbolic 0x04 | 15 #define FX_FONTSTYLE_Symbolic 0x04 |
| 15 #define FX_FONTSTYLE_Script 0x08 | 16 #define FX_FONTSTYLE_Script 0x08 |
| 16 #define FX_FONTSTYLE_Italic 0x40 | 17 #define FX_FONTSTYLE_Italic 0x40 |
| 17 #define FX_FONTSTYLE_Bold 0x40000 | 18 #define FX_FONTSTYLE_Bold 0x40000 |
| 18 #define FX_FONTSTYLE_BoldItalic (FX_FONTSTYLE_Bold | FX_FONTSTYLE_Italic) | 19 #define FX_FONTSTYLE_BoldItalic (FX_FONTSTYLE_Bold | FX_FONTSTYLE_Italic) |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 int32_t* pFaceCount = NULL) = 0; | 255 int32_t* pFaceCount = NULL) = 0; |
| 255 virtual IFX_Font* LoadFont(IFX_Stream* pFontStream, | 256 virtual IFX_Font* LoadFont(IFX_Stream* pFontStream, |
| 256 int32_t iFaceIndex, | 257 int32_t iFaceIndex, |
| 257 int32_t* pFaceCount = NULL, | 258 int32_t* pFaceCount = NULL, |
| 258 FX_BOOL bSaveStream = FALSE) = 0; | 259 FX_BOOL bSaveStream = FALSE) = 0; |
| 259 | 260 |
| 260 virtual void ClearFontCache() = 0; | 261 virtual void ClearFontCache() = 0; |
| 261 virtual void RemoveFont(IFX_Font* pFont) = 0; | 262 virtual void RemoveFont(IFX_Font* pFont) = 0; |
| 262 }; | 263 }; |
| 263 #endif | 264 #endif |
| 264 #endif | 265 |
| 266 #endif // XFA_SRC_FGAS_INCLUDE_FX_FNT_H_ |
| OLD | NEW |