Chromium Code Reviews| 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 struct _CFX_UniqueKeyGen { | 10 struct _CFX_UniqueKeyGen { | 
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 57 return Unicode; | 57 return Unicode; | 
| 58 } | 58 } | 
| 59 virtual FX_BOOL IsUnicodeCompatible() const { return TRUE; } | 59 virtual FX_BOOL IsUnicodeCompatible() const { return TRUE; } | 
| 60 }; | 60 }; | 
| 61 #define CHARSET_FLAG_ANSI 1 | 61 #define CHARSET_FLAG_ANSI 1 | 
| 62 #define CHARSET_FLAG_SYMBOL 2 | 62 #define CHARSET_FLAG_SYMBOL 2 | 
| 63 #define CHARSET_FLAG_SHIFTJIS 4 | 63 #define CHARSET_FLAG_SHIFTJIS 4 | 
| 64 #define CHARSET_FLAG_BIG5 8 | 64 #define CHARSET_FLAG_BIG5 8 | 
| 65 #define CHARSET_FLAG_GB 16 | 65 #define CHARSET_FLAG_GB 16 | 
| 66 #define CHARSET_FLAG_KOREAN 32 | 66 #define CHARSET_FLAG_KOREAN 32 | 
| 67 class CFontFaceInfo { | 67 | 
| 68 class CFX_FontFaceInfo { | |
| 68 public: | 69 public: | 
| 69 CFX_ByteString m_FilePath; | 70 CFX_FontFaceInfo(CFX_ByteString filePath, CFX_ByteString faceName, | 
| 70 CFX_ByteString m_FaceName; | 71 CFX_ByteString fontTables, FX_DWORD fontOffset, | 
| 72 FX_DWORD fileSize) | |
| 73 : m_FilePath(filePath), | |
| 74 m_FaceName(faceName), | |
| 75 m_FontTables(fontTables), | |
| 76 m_Styles(0), | |
| 77 m_Charsets(0), | |
| 78 m_FontOffset(fontOffset), | |
| 79 m_FileSize(fileSize) {} | |
| 80 | |
| 81 const CFX_ByteString m_FilePath; | |
| 82 const CFX_ByteString m_FaceName; | |
| 83 const CFX_ByteString m_FontTables; | |
| 71 FX_DWORD m_Styles; | 84 FX_DWORD m_Styles; | 
| 72 FX_DWORD m_Charsets; | 85 FX_DWORD m_Charsets; | 
| 73 FX_DWORD m_FontOffset; | 86 const FX_DWORD m_FontOffset; | 
| 
 
Lei Zhang
2015/08/06 18:29:44
maybe put all the constants together?
 
Tom Sepez
2015/08/06 18:40:42
Sure.  But I'm more interested in putting like-typ
 
 | |
| 74 FX_DWORD m_FileSize; | 87 const FX_DWORD m_FileSize; | 
| 75 CFX_ByteString m_FontTables; | |
| 76 }; | 88 }; | 
| 89 | |
| 77 class CFontFileFaceInfo { | 90 class CFontFileFaceInfo { | 
| 78 public: | 91 public: | 
| 79 CFontFileFaceInfo(); | 92 CFontFileFaceInfo(); | 
| 80 ~CFontFileFaceInfo(); | 93 ~CFontFileFaceInfo(); | 
| 94 | |
| 81 IFX_FileStream* m_pFile; | 95 IFX_FileStream* m_pFile; | 
| 82 FXFT_Face m_Face; | 96 FXFT_Face m_Face; | 
| 83 CFX_ByteString m_FaceName; | 97 CFX_ByteString m_FaceName; | 
| 84 FX_DWORD m_Charsets; | 98 FX_DWORD m_Charsets; | 
| 85 FX_DWORD m_FileSize; | 99 FX_DWORD m_FileSize; | 
| 86 FX_DWORD m_FontOffset; | 100 FX_DWORD m_FontOffset; | 
| 87 int m_Weight; | 101 int m_Weight; | 
| 88 FX_BOOL m_bItalic; | 102 FX_BOOL m_bItalic; | 
| 89 int m_PitchFamily; | 103 int m_PitchFamily; | 
| 90 CFX_ByteString m_FontTables; | 104 CFX_ByteString m_FontTables; | 
| 91 }; | 105 }; | 
| 92 | 106 | 
| 93 #endif // CORE_SRC_FXGE_GE_TEXT_INT_H_ | 107 #endif // CORE_SRC_FXGE_GE_TEXT_INT_H_ | 
| OLD | NEW |