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

Side by Side Diff: core/fxge/include/fx_font.h

Issue 2083943003: Use FXFONT defines in place of integers. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: nits Created 4 years, 6 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
« no previous file with comments | « core/fxge/ge/fx_ge_text.cpp ('k') | fpdfsdk/cfx_systemhandler.h » ('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_FXGE_INCLUDE_FX_FONT_H_ 7 #ifndef CORE_FXGE_INCLUDE_FX_FONT_H_
8 #define CORE_FXGE_INCLUDE_FX_FONT_H_ 8 #define CORE_FXGE_INCLUDE_FX_FONT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 #define FXFONT_SUBST_TRANSFORM 0x10 211 #define FXFONT_SUBST_TRANSFORM 0x10
212 #define FXFONT_SUBST_NONSYMBOL 0x20 212 #define FXFONT_SUBST_NONSYMBOL 0x20
213 #define FXFONT_SUBST_EXACT 0x40 213 #define FXFONT_SUBST_EXACT 0x40
214 #define FXFONT_SUBST_STANDARD 0x80 214 #define FXFONT_SUBST_STANDARD 0x80
215 215
216 class CFX_SubstFont { 216 class CFX_SubstFont {
217 public: 217 public:
218 CFX_SubstFont(); 218 CFX_SubstFont();
219 219
220 void* m_ExtHandle; 220 void* m_ExtHandle;
221 CFX_ByteString m_Family;
222 int m_Charset;
223 uint32_t m_SubstFlags;
224 int m_Weight;
225 int m_ItalicAngle;
226 bool m_bSubstCJK;
227 int m_WeightCJK;
228 bool m_bItalicCJK;
229 };
221 230
222 CFX_ByteString m_Family;
223
224 int m_Charset;
225
226 uint32_t m_SubstFlags;
227
228 int m_Weight;
229
230 int m_ItalicAngle;
231
232 FX_BOOL m_bSubstOfCJK;
233
234 int m_WeightCJK;
235
236 FX_BOOL m_bItlicCJK;
237 };
238 #define FX_FONT_FLAG_SERIF 0x01 231 #define FX_FONT_FLAG_SERIF 0x01
239 #define FX_FONT_FLAG_FIXEDPITCH 0x02 232 #define FX_FONT_FLAG_FIXEDPITCH 0x02
240 #define FX_FONT_FLAG_ITALIC 0x04 233 #define FX_FONT_FLAG_ITALIC 0x04
241 #define FX_FONT_FLAG_BOLD 0x08 234 #define FX_FONT_FLAG_BOLD 0x08
242 #define FX_FONT_FLAG_SYMBOLIC_SYMBOL 0x10 235 #define FX_FONT_FLAG_SYMBOLIC_SYMBOL 0x10
243 #define FX_FONT_FLAG_SYMBOLIC_DINGBATS 0x20 236 #define FX_FONT_FLAG_SYMBOLIC_DINGBATS 0x20
244 #define FX_FONT_FLAG_MULTIPLEMASTER 0x40 237 #define FX_FONT_FLAG_MULTIPLEMASTER 0x40
245 238
246 class CFX_FontMgr { 239 class CFX_FontMgr {
247 public: 240 public:
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 FX_FLOAT retinaScaleX = 1.0f, 577 FX_FLOAT retinaScaleX = 1.0f,
585 FX_FLOAT retinaScaleY = 1.0f); 578 FX_FLOAT retinaScaleY = 1.0f);
586 579
587 CFX_ByteString GetNameFromTT(const uint8_t* name_table, 580 CFX_ByteString GetNameFromTT(const uint8_t* name_table,
588 uint32_t name_table_size, 581 uint32_t name_table_size,
589 uint32_t name); 582 uint32_t name);
590 583
591 int PDF_GetStandardFontName(CFX_ByteString* name); 584 int PDF_GetStandardFontName(CFX_ByteString* name);
592 585
593 #endif // CORE_FXGE_INCLUDE_FX_FONT_H_ 586 #endif // CORE_FXGE_INCLUDE_FX_FONT_H_
OLDNEW
« no previous file with comments | « core/fxge/ge/fx_ge_text.cpp ('k') | fpdfsdk/cfx_systemhandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698