// Copyright 2019 The PDFium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef CORE_FXGE_TEXT_GLYPH_POS_H_ #define CORE_FXGE_TEXT_GLYPH_POS_H_ #include "core/fxcrt/fx_coordinates.h" #include "core/fxcrt/unowned_ptr.h" #include "third_party/abseil-cpp/absl/types/optional.h" class CFX_GlyphBitmap; class TextGlyphPos { public: TextGlyphPos(); TextGlyphPos(const TextGlyphPos&); ~TextGlyphPos(); absl::optional GetOrigin(const CFX_Point& offset) const; UnownedPtr m_pGlyph; CFX_Point m_Origin; CFX_PointF m_fDeviceOrigin; }; #endif // CORE_FXGE_TEXT_GLYPH_POS_H_