Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
text_char_pos.h
Go to the documentation of this file.
1// Copyright 2019 The PDFium Authors
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
10#include "build/build_config.h"
11#include "core/fxcrt/fx_coordinates.h"
12
14 public:
18
19 CFX_Matrix GetEffectiveMatrix(const CFX_Matrix& matrix) const;
20
21 CFX_PointF m_Origin;
22 uint32_t m_Unicode = 0;
23 uint32_t m_GlyphIndex = 0;
25#if BUILDFLAG(IS_APPLE)
27#endif
29 bool m_bGlyphAdjust = false;
30 bool m_bFontStyle = false;
31 float m_AdjustMatrix[4] = {};
32};
33
34#endif // CORE_FXGE_TEXT_CHAR_POS_H_
std::vector< TextCharPos > GetCharPosList(pdfium::span< const uint32_t > char_codes, pdfium::span< const float > char_pos, CPDF_Font *font, float font_size)
int GetGlyphWidth(uint32_t glyph_index) const
Definition cfx_font.cpp:239
CFX_SubstFont * GetSubstFont() const
Definition cfx_font.h:82
bool IsBuiltInGenericFont() const
const uint8_t * GetCIDTransform(uint16_t cid) const
uint16_t CIDFromCharCode(uint32_t charcode) const
static float CIDTransformToFloat(uint8_t ch)
bool IsVertWriting() const override
virtual bool IsTrueTypeFont() const
Definition cpdf_font.cpp:67
virtual int GetCharWidthF(uint32_t charcode)=0
int FallbackGlyphFromCharcode(int fallbackFont, uint32_t charcode)
virtual CPDF_CIDFont * AsCIDFont()
virtual int GlyphFromCharCode(uint32_t charcode, bool *pVertGlyph)=0
virtual bool IsCIDFont() const
Definition cpdf_font.cpp:75
virtual WideString UnicodeFromCharCode(uint32_t charcode) const
CFX_Font * GetFont()
Definition cpdf_font.h:130
ByteString GetBaseFontName() const
Definition cpdf_font.h:99
virtual bool HasFontWidths() const
uint32_t FallbackFontFromCharcode(uint32_t charcode)
bool IsEmbedded() const
Definition cpdf_font.h:101
CFX_Font * GetFontFallback(int position)
uint32_t m_GlyphIndex
float m_AdjustMatrix[4]
int32_t m_FallbackFontPosition
CFX_Matrix GetEffectiveMatrix(const CFX_Matrix &matrix) const
TextCharPos(const TextCharPos &)
bool m_bGlyphAdjust
CFX_PointF m_Origin
uint32_t m_Unicode
CharType operator[](const size_t index) const
Definition widestring.h:146
bool IsEmpty() const
Definition widestring.h:118