1 // Copyright 2016 PDFium Authors. All rights reserved.
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/fx_codepage.h"
11 #include "core/fxcrt/fx_string.h"
12 
13 class CFX_SubstFont {
14  public:
15   CFX_SubstFont();
16   ~CFX_SubstFont();
17 
18   int GetOriginalWeight() const;
19   void UseChromeSerif();
20 
21   ByteString m_Family;
22   int m_Charset = FX_CHARSET_ANSI;
23   int m_Weight = 0;
24   int m_ItalicAngle = 0;
25   int m_WeightCJK = 0;
26   bool m_bSubstCJK = false;
27   bool m_bItalicCJK = false;
28   bool m_bFlagMM = false;
29 };
30 
31 #endif  // CORE_FXGE_CFX_SUBSTFONT_H_
32