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_SRC_FXGE_GE_TEXT_INT_H_ | 7 #ifndef CORE_SRC_FXGE_GE_TEXT_INT_H_ |
8 #define CORE_SRC_FXGE_GE_TEXT_INT_H_ | 8 #define CORE_SRC_FXGE_GE_TEXT_INT_H_ |
9 | 9 |
10 #include "core/include/fxge/fx_font.h" | 10 #include "core/include/fxge/fx_font.h" |
(...skipping 11 matching lines...) Expand all Loading... | |
22 CFX_MapPtrToPtr m_GlyphMap; | 22 CFX_MapPtrToPtr m_GlyphMap; |
23 }; | 23 }; |
24 class CTTFontDesc { | 24 class CTTFontDesc { |
25 public: | 25 public: |
26 CTTFontDesc() { | 26 CTTFontDesc() { |
27 m_Type = 0; | 27 m_Type = 0; |
28 m_pFontData = NULL; | 28 m_pFontData = NULL; |
29 m_RefCount = 0; | 29 m_RefCount = 0; |
30 } | 30 } |
31 ~CTTFontDesc(); | 31 ~CTTFontDesc(); |
32 FX_BOOL ReleaseFace(FXFT_Face face); | 32 int ReleaseFace(FXFT_Face face); |
Tom Sepez
2015/12/09 19:11:54
Nit: please put a comment here describing return v
jun_fang
2015/12/09 23:58:09
Acknowledged.
| |
33 int m_Type; | 33 int m_Type; |
34 union { | 34 union { |
35 struct { | 35 struct { |
36 FX_BOOL m_bItalic; | 36 FX_BOOL m_bItalic; |
37 FX_BOOL m_bBold; | 37 FX_BOOL m_bBold; |
38 FXFT_Face m_pFace; | 38 FXFT_Face m_pFace; |
39 } m_SingleFace; | 39 } m_SingleFace; |
40 struct { | 40 struct { |
41 FXFT_Face m_pFaces[16]; | 41 FXFT_Face m_pFaces[16]; |
42 } m_TTCFace; | 42 } m_TTCFace; |
(...skipping 27 matching lines...) Expand all Loading... | |
70 const CFX_ByteString m_FilePath; | 70 const CFX_ByteString m_FilePath; |
71 const CFX_ByteString m_FaceName; | 71 const CFX_ByteString m_FaceName; |
72 const CFX_ByteString m_FontTables; | 72 const CFX_ByteString m_FontTables; |
73 const FX_DWORD m_FontOffset; | 73 const FX_DWORD m_FontOffset; |
74 const FX_DWORD m_FileSize; | 74 const FX_DWORD m_FileSize; |
75 FX_DWORD m_Styles; | 75 FX_DWORD m_Styles; |
76 FX_DWORD m_Charsets; | 76 FX_DWORD m_Charsets; |
77 }; | 77 }; |
78 | 78 |
79 #endif // CORE_SRC_FXGE_GE_TEXT_INT_H_ | 79 #endif // CORE_SRC_FXGE_GE_TEXT_INT_H_ |
OLD | NEW |