Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(699)

Side by Side Diff: core/src/fxge/ge/text_int.h

Issue 1277883004: Add CFX_FontFaceInfo constructor. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Put consts together Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_FontOffset(fontOffset),
77 m_FileSize(fileSize),
78 m_Styles(0),
79 m_Charsets(0) {}
80
81 const CFX_ByteString m_FilePath;
82 const CFX_ByteString m_FaceName;
83 const CFX_ByteString m_FontTables;
84 const FX_DWORD m_FontOffset;
85 const FX_DWORD m_FileSize;
71 FX_DWORD m_Styles; 86 FX_DWORD m_Styles;
72 FX_DWORD m_Charsets; 87 FX_DWORD m_Charsets;
73 FX_DWORD m_FontOffset;
74 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_
OLDNEW
« core/src/fxge/ge/fx_ge_fontmap.cpp ('K') | « core/src/fxge/ge/fx_ge_linux.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698