![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cfx_font.h>
Classes | |
| struct | CharsetFontMap |
Public Types | |
| enum class | FontType { kUnknown , kCIDTrueType } |
Public Member Functions | |
| CFX_Font () | |
| ~CFX_Font () | |
| void | LoadSubst (const ByteString &face_name, bool bTrueType, uint32_t flags, int weight, int italic_angle, FX_CodePage code_page, bool bVertical) |
| bool | LoadEmbedded (pdfium::span< const uint8_t > src_span, bool force_vertical, uint64_t object_tag) |
| RetainPtr< CFX_Face > | GetFace () const |
| FXFT_FaceRec * | GetFaceRec () const |
| CFX_SubstFont * | GetSubstFont () const |
| int | GetSubstFontItalicAngle () const |
| const CFX_GlyphBitmap * | LoadGlyphBitmap (uint32_t glyph_index, bool bFontStyle, const CFX_Matrix &matrix, int dest_width, int anti_alias, CFX_TextRenderOptions *text_options) const |
| const CFX_Path * | LoadGlyphPath (uint32_t glyph_index, int dest_width) const |
| int | GetGlyphWidth (uint32_t glyph_index) const |
| int | GetGlyphWidth (uint32_t glyph_index, int dest_width, int weight) const |
| int | GetAscent () const |
| int | GetDescent () const |
| std::optional< FX_RECT > | GetGlyphBBox (uint32_t glyph_index) |
| bool | IsItalic () const |
| bool | IsBold () const |
| bool | IsFixedWidth () const |
| bool | IsVertical () const |
| ByteString | GetPsName () const |
| ByteString | GetFamilyName () const |
| ByteString | GetBaseFontName () const |
| bool | IsTTFont () const |
| std::optional< FX_RECT > | GetRawBBox () const |
| std::optional< FX_RECT > | GetBBox () const |
| FontType | GetFontType () const |
| void | SetFontType (FontType type) |
| uint64_t | GetObjectTag () const |
| pdfium::raw_span< uint8_t > | GetFontSpan () const |
| std::unique_ptr< CFX_Path > | LoadGlyphPathImpl (uint32_t glyph_index, int dest_width) const |
| int | GetGlyphWidthImpl (uint32_t glyph_index, int dest_width, int weight) const |
Static Public Member Functions | |
| static pdfium::span< const CharsetFontMap > | GetDefaultTTFMapSpan () |
| static ByteString | GetDefaultFontNameByCharset (FX_Charset nCharset) |
| static FX_Charset | GetCharSetFromUnicode (uint16_t word) |
Static Public Attributes | |
| static const char | kUntitledFontName [] = "Untitled" |
| static const char | kDefaultAnsiFontName [] = "Helvetica" |
| static const char | kUniversalDefaultFontName [] = "Arial Unicode MS" |
Definition at line 38 of file cfx_font.h.
|
strong |
| Enumerator | |
|---|---|
| kUnknown | |
| kCIDTrueType | |
Definition at line 46 of file cfx_font.h.
|
default |
| CFX_Font::~CFX_Font | ( | ) |
Definition at line 224 of file cfx_font.cpp.
| int CFX_Font::GetAscent | ( | ) | const |
Definition at line 288 of file cfx_font.cpp.
| ByteString CFX_Font::GetBaseFontName | ( | ) | const |
Definition at line 399 of file cfx_font.cpp.
References fxcrt::ByteString::ByteString(), GetPsName(), IsTTFont(), kUntitledFontName, fxcrt::ByteString::operator!=(), fxcrt::operator+(), and fxcrt::ByteString::operator+=().
| std::optional< FX_RECT > CFX_Font::GetBBox | ( | ) | const |
Definition at line 423 of file cfx_font.cpp.
References FX_RECT::bottom, FX_RECT::left, FX_RECT::right, and FX_RECT::top.
|
static |
Definition at line 126 of file cfx_font.cpp.
References kANSI, kChineseSimplified, kHangul, kMSWin_Arabic, kMSWin_Cyrillic, kMSWin_EasternEuropean, kMSWin_Greek, kMSWin_Hebrew, kMSWin_Vietnamese, kShiftJIS, and kThai.
Referenced by CPDF_BAFontMap::CharSetFromUnicode().
|
static |
Definition at line 116 of file cfx_font.cpp.
References kUniversalDefaultFontName.
|
static |
Definition at line 110 of file cfx_font.cpp.
| int CFX_Font::GetDescent | ( | ) | const |
Definition at line 295 of file cfx_font.cpp.
Referenced by CBC_OneDimWriter::CalcTextInfo().
Definition at line 75 of file cfx_font.h.
|
inline |
Definition at line 76 of file cfx_font.h.
Referenced by CFX_RenderDevice::DrawNormalText().
| ByteString CFX_Font::GetFamilyName | ( | ) | const |
Definition at line 386 of file cfx_font.cpp.
References fxcrt::ByteString::ByteString().
Referenced by FPDFFont_GetFamilyName().
|
inline |
Definition at line 123 of file cfx_font.h.
|
inline |
Definition at line 120 of file cfx_font.h.
| std::optional< FX_RECT > CFX_Font::GetGlyphBBox | ( | uint32_t | glyph_index | ) |
Definition at line 302 of file cfx_font.cpp.
| int CFX_Font::GetGlyphWidth | ( | uint32_t | glyph_index | ) | const |
Definition at line 251 of file cfx_font.cpp.
References GetGlyphWidth().
Referenced by CBC_OneDimWriter::CalcTextInfo(), and GetCharPosList().
| int CFX_Font::GetGlyphWidth | ( | uint32_t | glyph_index, |
| int | dest_width, | ||
| int | weight ) const |
Definition at line 255 of file cfx_font.cpp.
Referenced by GetGlyphWidth().
| int CFX_Font::GetGlyphWidthImpl | ( | uint32_t | glyph_index, |
| int | dest_width, | ||
| int | weight ) const |
Definition at line 262 of file cfx_font.cpp.
|
inline |
Definition at line 122 of file cfx_font.h.
Referenced by CFX_PSFontTracker::AddFontObject(), and CFX_PSFontTracker::SeenFontObject().
| ByteString CFX_Font::GetPsName | ( | ) | const |
Definition at line 376 of file cfx_font.cpp.
References fxcrt::ByteString::ByteString(), kUntitledFontName, and fxcrt::ByteString::operator=().
Referenced by GetBaseFontName().
| std::optional< FX_RECT > CFX_Font::GetRawBBox | ( | ) | const |
Definition at line 417 of file cfx_font.cpp.
|
inline |
Definition at line 79 of file cfx_font.h.
Referenced by GetSubstFontItalicAngle(), CFX_GlyphCache::LoadGlyphPath(), and CFX_Face::RenderGlyph().
| int CFX_Font::GetSubstFontItalicAngle | ( | ) | const |
Definition at line 178 of file cfx_font.cpp.
References GetSubstFont(), and CFX_SubstFont::m_ItalicAngle.
Referenced by CFX_SkiaDeviceDriver::DrawDeviceText().
| bool CFX_Font::IsBold | ( | ) | const |
Definition at line 361 of file cfx_font.cpp.
| bool CFX_Font::IsFixedWidth | ( | ) | const |
Definition at line 365 of file cfx_font.cpp.
| bool CFX_Font::IsItalic | ( | ) | const |
Definition at line 349 of file cfx_font.cpp.
References fxcrt::ByteString::MakeLower().
| bool CFX_Font::IsTTFont | ( | ) | const |
Definition at line 284 of file cfx_font.cpp.
Referenced by GetBaseFontName().
|
inline |
Definition at line 108 of file cfx_font.h.
Referenced by CFX_SkiaDeviceDriver::DrawDeviceText(), CFX_GlyphCache::LoadGlyphPath(), and CFX_Face::RenderGlyph().
| bool CFX_Font::LoadEmbedded | ( | pdfium::span< const uint8_t > | src_span, |
| bool | force_vertical, | ||
| uint64_t | object_tag ) |
Definition at line 272 of file cfx_font.cpp.
| const CFX_GlyphBitmap * CFX_Font::LoadGlyphBitmap | ( | uint32_t | glyph_index, |
| bool | bFontStyle, | ||
| const CFX_Matrix & | matrix, | ||
| int | dest_width, | ||
| int | anti_alias, | ||
| CFX_TextRenderOptions * | text_options ) const |
Definition at line 458 of file cfx_font.cpp.
Referenced by CFX_RenderDevice::DrawNormalText().
| const CFX_Path * CFX_Font::LoadGlyphPath | ( | uint32_t | glyph_index, |
| int | dest_width ) const |
Definition at line 470 of file cfx_font.cpp.
Referenced by FPDFFont_GetGlyphPath().
| std::unique_ptr< CFX_Path > CFX_Font::LoadGlyphPathImpl | ( | uint32_t | glyph_index, |
| int | dest_width ) const |
Definition at line 449 of file cfx_font.cpp.
| void CFX_Font::LoadSubst | ( | const ByteString & | face_name, |
| bool | bTrueType, | ||
| uint32_t | flags, | ||
| int | weight, | ||
| int | italic_angle, | ||
| FX_CodePage | code_page, | ||
| bool | bVertical ) |
Definition at line 233 of file cfx_font.cpp.
Definition at line 121 of file cfx_font.h.
|
static |
Definition at line 54 of file cfx_font.h.
Referenced by CPDF_BAFontMap::CPDF_BAFontMap().
|
static |
Definition at line 55 of file cfx_font.h.
Referenced by GetDefaultFontNameByCharset(), and CPDF_BAFontMap::GetWordFontIndex().
|
static |
Definition at line 52 of file cfx_font.h.
Referenced by GetBaseFontName(), and GetPsName().