blob: 0877a265cc78ac436ea43feed61278ad351128e6 [file] [log] [blame]
K. Moon832a6942022-10-31 20:11:31 +00001// Copyright 2019 The PDFium Authors
Lei Zhangdfde40c2019-06-21 16:38:08 +00002// 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
Peter Varga21b566e2021-08-31 17:36:08 +000010#include "build/build_config.h"
Lei Zhangdfde40c2019-06-21 16:38:08 +000011#include "core/fxcrt/fx_coordinates.h"
12
13class TextCharPos {
14 public:
15 TextCharPos();
16 TextCharPos(const TextCharPos&);
17 ~TextCharPos();
18
Lei Zhangd6255d52022-04-02 00:02:40 +000019 CFX_Matrix GetEffectiveMatrix(const CFX_Matrix& matrix) const;
20
Lei Zhangdfde40c2019-06-21 16:38:08 +000021 CFX_PointF m_Origin;
22 uint32_t m_Unicode = 0;
23 uint32_t m_GlyphIndex = 0;
Lei Zhang70e66192020-09-18 20:50:51 +000024 int m_FontCharWidth = 0;
Lei Zhang42d30c22022-01-12 19:24:43 +000025#if BUILDFLAG(IS_APPLE)
Lei Zhangdfde40c2019-06-21 16:38:08 +000026 uint32_t m_ExtGID = 0;
27#endif
28 int32_t m_FallbackFontPosition = 0;
29 bool m_bGlyphAdjust = false;
30 bool m_bFontStyle = false;
Tom Sepez69bddfe2022-11-14 20:41:50 +000031 float m_AdjustMatrix[4] = {};
Lei Zhangdfde40c2019-06-21 16:38:08 +000032};
33
34#endif // CORE_FXGE_TEXT_CHAR_POS_H_