| // Copyright 2016 PDFium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| |
| #ifndef CORE_FXGE_CFX_SUBSTFONT_H_ |
| #define CORE_FXGE_CFX_SUBSTFONT_H_ |
| |
| #include "core/fxcrt/bytestring.h" |
| #include "core/fxcrt/fx_codepage.h" |
| |
| class CFX_SubstFont { |
| public: |
| CFX_SubstFont(); |
| ~CFX_SubstFont(); |
| |
| #if defined(_SKIA_SUPPORT_) || defined(_SKIA_SUPPORT_PATHS_) |
| int GetOriginalWeight() const; |
| #endif |
| void UseChromeSerif(); |
| |
| ByteString m_Family; |
| FX_Charset m_Charset = FX_Charset::kANSI; |
| int m_Weight = 0; |
| int m_ItalicAngle = 0; |
| int m_WeightCJK = 0; |
| bool m_bSubstCJK = false; |
| bool m_bItalicCJK = false; |
| bool m_bFlagMM = false; |
| }; |
| |
| #endif // CORE_FXGE_CFX_SUBSTFONT_H_ |