| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_CFX_SUBSTFONT_H_ | 7 #ifndef CORE_FXGE_CFX_SUBSTFONT_H_ |
| 8 #define CORE_FXGE_CFX_SUBSTFONT_H_ | 8 #define CORE_FXGE_CFX_SUBSTFONT_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/fx_string.h" | 10 #include "core/fxcrt/fx_string.h" |
| 11 | 11 |
| 12 #define FXFONT_SUBST_MM 0x01 | 12 #define FXFONT_SUBST_MM 0x01 |
| 13 #define FXFONT_SUBST_GLYPHPATH 0x04 | 13 #define FXFONT_SUBST_GLYPHPATH 0x04 |
| 14 #define FXFONT_SUBST_CLEARTYPE 0x08 | 14 #define FXFONT_SUBST_CLEARTYPE 0x08 |
| 15 #define FXFONT_SUBST_TRANSFORM 0x10 | 15 #define FXFONT_SUBST_TRANSFORM 0x10 |
| 16 #define FXFONT_SUBST_NONSYMBOL 0x20 | 16 #define FXFONT_SUBST_NONSYMBOL 0x20 |
| 17 #define FXFONT_SUBST_EXACT 0x40 | 17 #define FXFONT_SUBST_EXACT 0x40 |
| 18 #define FXFONT_SUBST_STANDARD 0x80 | |
| 19 | 18 |
| 20 class CFX_SubstFont { | 19 class CFX_SubstFont { |
| 21 public: | 20 public: |
| 22 CFX_SubstFont(); | 21 CFX_SubstFont(); |
| 23 | 22 |
| 24 CFX_ByteString m_Family; | 23 CFX_ByteString m_Family; |
| 25 int m_Charset; | 24 int m_Charset; |
| 26 uint32_t m_SubstFlags; | 25 uint32_t m_SubstFlags; |
| 27 int m_Weight; | 26 int m_Weight; |
| 28 int m_ItalicAngle; | 27 int m_ItalicAngle; |
| 29 bool m_bSubstCJK; | 28 bool m_bSubstCJK; |
| 30 int m_WeightCJK; | 29 int m_WeightCJK; |
| 31 bool m_bItalicCJK; | 30 bool m_bItalicCJK; |
| 32 }; | 31 }; |
| 33 | 32 |
| 34 #endif // CORE_FXGE_CFX_SUBSTFONT_H_ | 33 #endif // CORE_FXGE_CFX_SUBSTFONT_H_ |
| OLD | NEW |