| 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_FXGE_GE_FX_TEXT_INT_H_ | 7 #ifndef CORE_FXGE_GE_FX_TEXT_INT_H_ |
| 8 #define CORE_FXGE_GE_FX_TEXT_INT_H_ | 8 #define CORE_FXGE_GE_FX_TEXT_INT_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "core/include/fxge/fx_font.h" | 12 #include "core/include/fxge/fx_font.h" |
| 13 #include "core/include/fxge/fx_freetype.h" | 13 #include "core/include/fxge/fx_freetype.h" |
| 14 | 14 |
| 15 struct _CFX_UniqueKeyGen { | 15 struct _CFX_UniqueKeyGen { |
| 16 void Generate(int count, ...); | 16 void Generate(int count, ...); |
| 17 FX_CHAR m_Key[128]; | 17 FX_CHAR m_Key[128]; |
| 18 int m_KeyLen; | 18 int m_KeyLen; |
| 19 }; | 19 }; |
| 20 class CFX_SizeGlyphCache { | 20 class CFX_SizeGlyphCache { |
| 21 public: | 21 public: |
| 22 CFX_SizeGlyphCache() {} | 22 CFX_SizeGlyphCache() {} |
| 23 ~CFX_SizeGlyphCache(); | 23 ~CFX_SizeGlyphCache(); |
| 24 std::map<FX_DWORD, CFX_GlyphBitmap*> m_GlyphMap; | 24 std::map<uint32_t, CFX_GlyphBitmap*> m_GlyphMap; |
| 25 }; | 25 }; |
| 26 class CTTFontDesc { | 26 class CTTFontDesc { |
| 27 public: | 27 public: |
| 28 CTTFontDesc() { | 28 CTTFontDesc() { |
| 29 m_Type = 0; | 29 m_Type = 0; |
| 30 m_pFontData = NULL; | 30 m_pFontData = NULL; |
| 31 m_RefCount = 0; | 31 m_RefCount = 0; |
| 32 } | 32 } |
| 33 ~CTTFontDesc(); | 33 ~CTTFontDesc(); |
| 34 // ret < 0, releaseface not appropriate for this object. | 34 // ret < 0, releaseface not appropriate for this object. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 55 #define CHARSET_FLAG_SHIFTJIS 4 | 55 #define CHARSET_FLAG_SHIFTJIS 4 |
| 56 #define CHARSET_FLAG_BIG5 8 | 56 #define CHARSET_FLAG_BIG5 8 |
| 57 #define CHARSET_FLAG_GB 16 | 57 #define CHARSET_FLAG_GB 16 |
| 58 #define CHARSET_FLAG_KOREAN 32 | 58 #define CHARSET_FLAG_KOREAN 32 |
| 59 | 59 |
| 60 class CFX_FontFaceInfo { | 60 class CFX_FontFaceInfo { |
| 61 public: | 61 public: |
| 62 CFX_FontFaceInfo(CFX_ByteString filePath, | 62 CFX_FontFaceInfo(CFX_ByteString filePath, |
| 63 CFX_ByteString faceName, | 63 CFX_ByteString faceName, |
| 64 CFX_ByteString fontTables, | 64 CFX_ByteString fontTables, |
| 65 FX_DWORD fontOffset, | 65 uint32_t fontOffset, |
| 66 FX_DWORD fileSize) | 66 uint32_t fileSize) |
| 67 : m_FilePath(filePath), | 67 : m_FilePath(filePath), |
| 68 m_FaceName(faceName), | 68 m_FaceName(faceName), |
| 69 m_FontTables(fontTables), | 69 m_FontTables(fontTables), |
| 70 m_FontOffset(fontOffset), | 70 m_FontOffset(fontOffset), |
| 71 m_FileSize(fileSize), | 71 m_FileSize(fileSize), |
| 72 m_Styles(0), | 72 m_Styles(0), |
| 73 m_Charsets(0) {} | 73 m_Charsets(0) {} |
| 74 | 74 |
| 75 const CFX_ByteString m_FilePath; | 75 const CFX_ByteString m_FilePath; |
| 76 const CFX_ByteString m_FaceName; | 76 const CFX_ByteString m_FaceName; |
| 77 const CFX_ByteString m_FontTables; | 77 const CFX_ByteString m_FontTables; |
| 78 const FX_DWORD m_FontOffset; | 78 const uint32_t m_FontOffset; |
| 79 const FX_DWORD m_FileSize; | 79 const uint32_t m_FileSize; |
| 80 FX_DWORD m_Styles; | 80 uint32_t m_Styles; |
| 81 FX_DWORD m_Charsets; | 81 uint32_t m_Charsets; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 #endif // CORE_FXGE_GE_FX_TEXT_INT_H_ | 84 #endif // CORE_FXGE_GE_FX_TEXT_INT_H_ |
| OLD | NEW |