• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 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_TEXT_CHAR_POS_H_
8 #define CORE_FXGE_TEXT_CHAR_POS_H_
9 
10 #include "build/build_config.h"
11 #include "core/fxcrt/fx_coordinates.h"
12 
13 class TextCharPos {
14  public:
15   TextCharPos();
16   TextCharPos(const TextCharPos&);
17   ~TextCharPos();
18 
19   CFX_Matrix GetEffectiveMatrix(const CFX_Matrix& matrix) const;
20 
21   CFX_PointF m_Origin;
22   uint32_t m_Unicode = 0;
23   uint32_t m_GlyphIndex = 0;
24   int m_FontCharWidth = 0;
25 #if BUILDFLAG(IS_APPLE)
26   uint32_t m_ExtGID = 0;
27 #endif
28   int32_t m_FallbackFontPosition = 0;
29   bool m_bGlyphAdjust = false;
30   bool m_bFontStyle = false;
31   float m_AdjustMatrix[4] = {};
32 };
33 
34 #endif  // CORE_FXGE_TEXT_CHAR_POS_H_
35