pdfium/core/fxge/text_char_pos.h
Tom Sepez 21770e33dd Change TextCharPos::font_style_ to is_cid_font_.
Then propagate naming to callers.

-- Make TextCharPos an aggregate while at it.

Change-Id: Ia197cedc2814207d2bc8cb60555611054fa484c3
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/151270
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
2026-06-30 16:35:35 -07:00

32 lines
816 B
C++

// 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_CHAR_POS_H_
#define CORE_FXGE_TEXT_CHAR_POS_H_
#include <array>
#include "build/build_config.h"
#include "core/fxcrt/fx_coordinates.h"
struct TextCharPos {
CFX_Matrix GetEffectiveMatrix(const CFX_Matrix& matrix) const;
CFX_PointF origin_;
uint32_t unicode_ = 0;
uint32_t glyph_index_ = 0;
int font_char_width_ = 0;
#if BUILDFLAG(IS_APPLE)
uint32_t ext_gid_ = 0;
#endif
int32_t fallback_font_position_ = 0;
bool glyph_adjust_ = false;
bool is_cid_font_ = false;
std::array<float, 4> adjust_matrix_ = {};
};
#endif // CORE_FXGE_TEXT_CHAR_POS_H_