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