blob: af8c3935ceccf6650a33206241132fb509b64abd [file] [log] [blame]
// Copyright 2019 PDFium Authors. All rights reserved.
// 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<CFX_Point> GetOrigin(const CFX_Point& offset) const;
UnownedPtr<const CFX_GlyphBitmap> m_pGlyph;
CFX_Point m_Origin;
CFX_PointF m_fDeviceOrigin;
};
#endif // CORE_FXGE_TEXT_GLYPH_POS_H_