Chromium Code Reviews

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

Issue 1248153004: Merge to XFA: FX_BOOL combo patch. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: CTTFontDesc::ReleaseFace() mismatch Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « core/src/fxge/ge/fx_ge_linux.cpp ('k') | fpdfsdk/src/fpdf_sysfontinfo.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 14 matching lines...)
25 class CTTFontDesc 25 class CTTFontDesc
26 { 26 {
27 public: 27 public:
28 CTTFontDesc() 28 CTTFontDesc()
29 { 29 {
30 m_Type = 0; 30 m_Type = 0;
31 m_pFontData = NULL; 31 m_pFontData = NULL;
32 m_RefCount = 0; 32 m_RefCount = 0;
33 } 33 }
34 ~CTTFontDesc(); 34 ~CTTFontDesc();
35 FX_BOOL» » » ReleaseFace(FXFT_Face face); 35 int32_t» » » ReleaseFace(FXFT_Face face);
36 int m_Type; 36 int m_Type;
37 union { 37 union {
38 struct { 38 struct {
39 FX_BOOL m_bItalic; 39 FX_BOOL m_bItalic;
40 FX_BOOL m_bBold; 40 FX_BOOL m_bBold;
41 FXFT_Face m_pFace; 41 FXFT_Face m_pFace;
42 } m_SingleFace; 42 } m_SingleFace;
43 struct { 43 struct {
44 FXFT_Face m_pFaces[16]; 44 FXFT_Face m_pFaces[16];
45 } m_TTCFace; 45 } m_TTCFace;
(...skipping 70 matching lines...)
116 virtual FX_DWORD GlyphFromCharCodeEx(FX_DWORD charcode, int encod ing = ENCODING_UNICODE) 116 virtual FX_DWORD GlyphFromCharCodeEx(FX_DWORD charcode, int encod ing = ENCODING_UNICODE)
117 { 117 {
118 return GlyphFromCharCode(charcode); 118 return GlyphFromCharCode(charcode);
119 } 119 }
120 private: 120 private:
121 CFX_Font* m_pFont; 121 CFX_Font* m_pFont;
122 FX_DWORD m_nEncodingID; 122 FX_DWORD m_nEncodingID;
123 }; 123 };
124 124
125 #endif // CORE_SRC_FXGE_GE_TEXT_INT_H_ 125 #endif // CORE_SRC_FXGE_GE_TEXT_INT_H_
OLDNEW
« no previous file with comments | « core/src/fxge/ge/fx_ge_linux.cpp ('k') | fpdfsdk/src/fpdf_sysfontinfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine