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