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_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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 #define FXFONT_SUBST_CLEARTYPE 0x08 | 214 #define FXFONT_SUBST_CLEARTYPE 0x08 |
215 #define FXFONT_SUBST_TRANSFORM 0x10 | 215 #define FXFONT_SUBST_TRANSFORM 0x10 |
216 #define FXFONT_SUBST_NONSYMBOL 0x20 | 216 #define FXFONT_SUBST_NONSYMBOL 0x20 |
217 #define FXFONT_SUBST_EXACT 0x40 | 217 #define FXFONT_SUBST_EXACT 0x40 |
218 #define FXFONT_SUBST_STANDARD 0x80 | 218 #define FXFONT_SUBST_STANDARD 0x80 |
219 | 219 |
220 class CFX_SubstFont { | 220 class CFX_SubstFont { |
221 public: | 221 public: |
222 CFX_SubstFont(); | 222 CFX_SubstFont(); |
223 | 223 |
224 void* m_ExtHandle; | |
225 CFX_ByteString m_Family; | 224 CFX_ByteString m_Family; |
226 int m_Charset; | 225 int m_Charset; |
227 uint32_t m_SubstFlags; | 226 uint32_t m_SubstFlags; |
228 int m_Weight; | 227 int m_Weight; |
229 int m_ItalicAngle; | 228 int m_ItalicAngle; |
230 bool m_bSubstCJK; | 229 bool m_bSubstCJK; |
231 int m_WeightCJK; | 230 int m_WeightCJK; |
232 bool m_bItalicCJK; | 231 bool m_bItalicCJK; |
233 }; | 232 }; |
234 | 233 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 FX_FLOAT retinaScaleX = 1.0f, | 385 FX_FLOAT retinaScaleX = 1.0f, |
387 FX_FLOAT retinaScaleY = 1.0f); | 386 FX_FLOAT retinaScaleY = 1.0f); |
388 | 387 |
389 CFX_ByteString GetNameFromTT(const uint8_t* name_table, | 388 CFX_ByteString GetNameFromTT(const uint8_t* name_table, |
390 uint32_t name_table_size, | 389 uint32_t name_table_size, |
391 uint32_t name); | 390 uint32_t name); |
392 | 391 |
393 int PDF_GetStandardFontName(CFX_ByteString* name); | 392 int PDF_GetStandardFontName(CFX_ByteString* name); |
394 | 393 |
395 #endif // CORE_FXGE_INCLUDE_FX_FONT_H_ | 394 #endif // CORE_FXGE_INCLUDE_FX_FONT_H_ |
OLD | NEW |