• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 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 #include "core/fxcrt/cfx_char.h"
8 
CFX_Char(uint16_t wCharCode,uint32_t dwCharProps)9 CFX_Char::CFX_Char(uint16_t wCharCode, uint32_t dwCharProps)
10     : CFX_Char(wCharCode, dwCharProps, 100, 100) {}
11 
CFX_Char(uint16_t wCharCode,uint32_t dwCharProps,int32_t iHorizontalScale,int32_t iVerticalScale)12 CFX_Char::CFX_Char(uint16_t wCharCode,
13                    uint32_t dwCharProps,
14                    int32_t iHorizontalScale,
15                    int32_t iVerticalScale)
16     : m_dwStatus(CFX_BreakType::None),
17       m_nBreakType(0),
18       m_dwCharStyles(0),
19       m_iCharWidth(0),
20       m_iBidiClass(0),
21       m_iBidiLevel(0),
22       m_iBidiPos(0),
23       m_iBidiOrder(0),
24       m_iFontSize(0),
25       m_dwIdentity(0),
26       m_wCharCode(wCharCode),
27       m_dwCharProps(dwCharProps),
28       m_iHorizontalScale(iHorizontalScale),
29       m_iVerticalScale(iVerticalScale) {}
30 
31 CFX_Char::CFX_Char(const CFX_Char& other) = default;
32 
33 CFX_Char::~CFX_Char() = default;
34 
GetCharType() const35 FX_CHARTYPE CFX_Char::GetCharType() const {
36   return GetCharTypeFromProp(m_dwCharProps);
37 }
38