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 <map> |
| 11 |
10 #include "core/include/fxge/fx_font.h" | 12 #include "core/include/fxge/fx_font.h" |
11 #include "core/include/fxge/fx_freetype.h" | 13 #include "core/include/fxge/fx_freetype.h" |
12 | 14 |
13 struct _CFX_UniqueKeyGen { | 15 struct _CFX_UniqueKeyGen { |
14 void Generate(int count, ...); | 16 void Generate(int count, ...); |
15 FX_CHAR m_Key[128]; | 17 FX_CHAR m_Key[128]; |
16 int m_KeyLen; | 18 int m_KeyLen; |
17 }; | 19 }; |
18 class CFX_SizeGlyphCache { | 20 class CFX_SizeGlyphCache { |
19 public: | 21 public: |
20 CFX_SizeGlyphCache() { m_GlyphMap.InitHashTable(253); } | 22 CFX_SizeGlyphCache() {} |
21 ~CFX_SizeGlyphCache(); | 23 ~CFX_SizeGlyphCache(); |
22 CFX_MapPtrToPtr m_GlyphMap; | 24 std::map<FX_DWORD, CFX_GlyphBitmap*> m_GlyphMap; |
23 }; | 25 }; |
24 class CTTFontDesc { | 26 class CTTFontDesc { |
25 public: | 27 public: |
26 CTTFontDesc() { | 28 CTTFontDesc() { |
27 m_Type = 0; | 29 m_Type = 0; |
28 m_pFontData = NULL; | 30 m_pFontData = NULL; |
29 m_RefCount = 0; | 31 m_RefCount = 0; |
30 } | 32 } |
31 ~CTTFontDesc(); | 33 ~CTTFontDesc(); |
32 // ret < 0, releaseface not appropriate for this object. | 34 // ret < 0, releaseface not appropriate for this object. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 const CFX_ByteString m_FilePath; | 75 const CFX_ByteString m_FilePath; |
74 const CFX_ByteString m_FaceName; | 76 const CFX_ByteString m_FaceName; |
75 const CFX_ByteString m_FontTables; | 77 const CFX_ByteString m_FontTables; |
76 const FX_DWORD m_FontOffset; | 78 const FX_DWORD m_FontOffset; |
77 const FX_DWORD m_FileSize; | 79 const FX_DWORD m_FileSize; |
78 FX_DWORD m_Styles; | 80 FX_DWORD m_Styles; |
79 FX_DWORD m_Charsets; | 81 FX_DWORD m_Charsets; |
80 }; | 82 }; |
81 | 83 |
82 #endif // CORE_SRC_FXGE_GE_TEXT_INT_H_ | 84 #endif // CORE_SRC_FXGE_GE_TEXT_INT_H_ |
OLD | NEW |