K. Moon | 832a694 | 2022-10-31 20:11:31 +0000 | [diff] [blame] | 1 | // Copyright 2019 The PDFium Authors |
Lei Zhang | dfde40c | 2019-06-21 16:38:08 +0000 | [diff] [blame] | 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 | |
Peter Varga | 21b566e | 2021-08-31 17:36:08 +0000 | [diff] [blame] | 10 | #include "build/build_config.h" |
Lei Zhang | dfde40c | 2019-06-21 16:38:08 +0000 | [diff] [blame] | 11 | #include "core/fxcrt/fx_coordinates.h" |
| 12 | |
| 13 | class TextCharPos { |
| 14 | public: |
| 15 | TextCharPos(); |
| 16 | TextCharPos(const TextCharPos&); |
| 17 | ~TextCharPos(); |
| 18 | |
Lei Zhang | d6255d5 | 2022-04-02 00:02:40 +0000 | [diff] [blame] | 19 | CFX_Matrix GetEffectiveMatrix(const CFX_Matrix& matrix) const; |
| 20 | |
Lei Zhang | dfde40c | 2019-06-21 16:38:08 +0000 | [diff] [blame] | 21 | CFX_PointF m_Origin; |
| 22 | uint32_t m_Unicode = 0; |
| 23 | uint32_t m_GlyphIndex = 0; |
Lei Zhang | 70e6619 | 2020-09-18 20:50:51 +0000 | [diff] [blame] | 24 | int m_FontCharWidth = 0; |
Lei Zhang | 42d30c2 | 2022-01-12 19:24:43 +0000 | [diff] [blame] | 25 | #if BUILDFLAG(IS_APPLE) |
Lei Zhang | dfde40c | 2019-06-21 16:38:08 +0000 | [diff] [blame] | 26 | uint32_t m_ExtGID = 0; |
| 27 | #endif |
| 28 | int32_t m_FallbackFontPosition = 0; |
| 29 | bool m_bGlyphAdjust = false; |
| 30 | bool m_bFontStyle = false; |
Tom Sepez | 69bddfe | 2022-11-14 20:41:50 +0000 | [diff] [blame^] | 31 | float m_AdjustMatrix[4] = {}; |
Lei Zhang | dfde40c | 2019-06-21 16:38:08 +0000 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | #endif // CORE_FXGE_TEXT_CHAR_POS_H_ |