1 // Copyright 2016 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef CORE_FXGE_CFX_SUBSTFONT_H_ 8 #define CORE_FXGE_CFX_SUBSTFONT_H_ 9 10 #include "core/fxcrt/bytestring.h" 11 #include "core/fxcrt/fx_codepage.h" 12 13 class CFX_SubstFont { 14 public: 15 CFX_SubstFont(); 16 ~CFX_SubstFont(); 17 18 #if defined(_SKIA_SUPPORT_) 19 int GetOriginalWeight() const; 20 #endif 21 void UseChromeSerif(); 22 SetIsBuiltInGenericFont()23 void SetIsBuiltInGenericFont() { m_bFlagMM = true; } IsBuiltInGenericFont()24 bool IsBuiltInGenericFont() const { return m_bFlagMM; } 25 26 ByteString m_Family; 27 FX_Charset m_Charset = FX_Charset::kANSI; 28 int m_Weight = 0; 29 int m_ItalicAngle = 0; 30 int m_WeightCJK = 0; 31 32 bool m_bSubstCJK = false; 33 bool m_bItalicCJK = false; 34 35 private: 36 bool m_bFlagMM = false; 37 }; 38 39 #endif // CORE_FXGE_CFX_SUBSTFONT_H_ 40