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> |
11 | 11 |
12 #include "../../../third_party/base/nonstd_unique_ptr.h" | 12 #include "../../../third_party/base/nonstd_unique_ptr.h" |
13 #include "../fxcrt/fx_system.h" | 13 #include "../fxcrt/fx_system.h" |
14 #include "fx_dib.h" | 14 #include "fx_dib.h" |
15 | 15 |
16 typedef struct FT_FaceRec_* FXFT_Face; | 16 typedef struct FT_FaceRec_* FXFT_Face; |
17 typedef void* FXFT_Library; | 17 typedef void* FXFT_Library; |
18 | 18 |
19 class CFX_FaceCache; | 19 class CFX_FaceCache; |
20 class CFX_FontFaceInfo; | 20 class CFX_FontFaceInfo; |
21 class CFX_FontMapper; | 21 class CFX_FontMapper; |
22 class CFX_PathData; | 22 class CFX_PathData; |
23 class CFX_SizeGlyphCache; | 23 class CFX_SizeGlyphCache; |
24 class CFX_SubstFont; | 24 class CFX_SubstFont; |
25 class CFontFileFaceInfo; | |
26 class CTTFontDesc; | 25 class CTTFontDesc; |
27 class IFX_FontEncoding; | 26 class IFX_FontEncoding; |
28 class IFX_SystemFontInfo; | 27 class IFX_SystemFontInfo; |
29 | 28 |
30 #define FXFONT_FIXED_PITCH 0x01 | 29 #define FXFONT_FIXED_PITCH 0x01 |
31 #define FXFONT_SERIF 0x02 | 30 #define FXFONT_SERIF 0x02 |
32 #define FXFONT_SYMBOLIC 0x04 | 31 #define FXFONT_SYMBOLIC 0x04 |
33 #define FXFONT_SCRIPT 0x08 | 32 #define FXFONT_SCRIPT 0x08 |
34 #define FXFONT_ITALIC 0x40 | 33 #define FXFONT_ITALIC 0x40 |
35 #define FXFONT_BOLD 0x40000 | 34 #define FXFONT_BOLD 0x40000 |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 | 513 |
515 protected: | 514 protected: |
516 virtual ~IFX_GSUBTable() {} | 515 virtual ~IFX_GSUBTable() {} |
517 }; | 516 }; |
518 | 517 |
519 CFX_ByteString GetNameFromTT(const uint8_t* name_table, FX_DWORD name); | 518 CFX_ByteString GetNameFromTT(const uint8_t* name_table, FX_DWORD name); |
520 | 519 |
521 int PDF_GetStandardFontName(CFX_ByteString* name); | 520 int PDF_GetStandardFontName(CFX_ByteString* name); |
522 | 521 |
523 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_ | 522 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_ |
OLD | NEW |