Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <vector>
#include "core/fxcrt/bytestring.h"
#include "core/fxcrt/fx_coordinates.h"
#include "third_party/base/containers/span.h"
Go to the source code of this file.
Macros | |
#define | FXFONT_FF_FIXEDPITCH (1 << 0) |
#define | FXFONT_FF_ROMAN (1 << 4) |
#define | FXFONT_FF_SCRIPT (4 << 4) |
#define | FXFONT_FW_NORMAL 400 |
#define | FXFONT_FW_BOLD 700 |
#define | FXFONT_FW_BOLD_BOLD 900 |
#define | FXFONT_NORMAL (0) |
#define | FXFONT_FIXED_PITCH (1 << 0) |
#define | FXFONT_SERIF (1 << 1) |
#define | FXFONT_SYMBOLIC (1 << 2) |
#define | FXFONT_SCRIPT (1 << 3) |
#define | FXFONT_NONSYMBOLIC (1 << 5) |
#define | FXFONT_ITALIC (1 << 6) |
#define | FXFONT_ALLCAP (1 << 16) |
#define | FXFONT_SMALLCAP (1 << 17) |
#define | FXFONT_FORCE_BOLD (1 << 18) |
#define | FXFONT_USEEXTERNATTR 0x80000 |
Functions | |
FX_RECT | GetGlyphsBBox (const std::vector< TextGlyphPos > &glyphs, int anti_alias) |
ByteString | GetNameFromTT (pdfium::span< const uint8_t > name_table, uint32_t name) |
size_t | GetTTCIndex (pdfium::span< const uint8_t > pFontData, size_t font_offset) |
bool | FontStyleIsForceBold (uint32_t style) |
bool | FontStyleIsItalic (uint32_t style) |
bool | FontStyleIsFixedPitch (uint32_t style) |
bool | FontStyleIsSymbolic (uint32_t style) |
bool | FontStyleIsNonSymbolic (uint32_t style) |
bool | FontStyleIsAllCaps (uint32_t style) |
bool | FontStyleIsSerif (uint32_t style) |
bool | FontStyleIsScript (uint32_t style) |
bool | FontFamilyIsFixedPitch (uint32_t family) |
bool | FontFamilyIsRoman (uint32_t family) |
bool | FontFamilyIsScript (int32_t family) |
wchar_t | UnicodeFromAdobeName (const char *name) |
ByteString | AdobeNameFromUnicode (wchar_t unicode) |
Variables | |
constexpr uint16_t | kNamePlatformAppleUnicode = 0 |
constexpr uint16_t | kNamePlatformMac = 1 |
constexpr uint16_t | kNamePlatformWindows = 3 |
ByteString AdobeNameFromUnicode | ( | wchar_t | unicode | ) |
Definition at line 142 of file fx_font.cpp.
References fxcrt::ByteString::ByteString(), and FXFT_adobe_name_from_unicode().
|
inline |
Definition at line 84 of file fx_font.h.
Referenced by CFX_FolderFontInfo::FindFont(), and CFX_AndroidFontInfo::MapFont().
|
inline |
Definition at line 87 of file fx_font.h.
Referenced by CFX_AndroidFontInfo::MapFont().
|
inline |
Definition at line 90 of file fx_font.h.
Referenced by CFX_AndroidFontInfo::MapFont().
|
inline |
Definition at line 74 of file fx_font.h.
Referenced by CPDF_SimpleFont::LoadCommon().
|
inline |
Definition at line 65 of file fx_font.h.
Referenced by CPDF_SimpleFont::LoadSubstFont().
|
inline |
Definition at line 59 of file fx_font.h.
Referenced by FPDFEditEmbedderTest::CheckFontDescriptor(), CFX_FontMapper::FindSubstFont(), CFGAS_DefaultFontManager::GetFont(), and CFGAS_PDFFontMgr::GetFont().
|
inline |
Definition at line 62 of file fx_font.h.
Referenced by FPDFEditEmbedderTest::CheckFontDescriptor(), CFX_FontMapper::FindSubstFont(), CFGAS_DefaultFontManager::GetFont(), and CFGAS_PDFFontMgr::GetFont().
|
inline |
Definition at line 71 of file fx_font.h.
Referenced by FPDFEditEmbedderTest::CheckFontDescriptor(), and CPDF_Type1Font::Load().
|
inline |
Definition at line 68 of file fx_font.h.
Referenced by CPDF_SimpleFont::LoadCommon(), and CPDF_Type1Font::LoadGlyphMap().
FX_RECT GetGlyphsBBox | ( | const std::vector< TextGlyphPos > & | glyphs, |
int | anti_alias ) |
Definition at line 35 of file fx_font.cpp.
ByteString GetNameFromTT | ( | pdfium::span< const uint8_t > | name_table, |
uint32_t | name ) |
Definition at line 79 of file fx_font.cpp.
References fxcrt::ByteString::ByteString(), fxcrt::WideString::FromUTF16BE(), fxcrt::ByteString::IsEmpty(), kNamePlatformMac, and kNamePlatformWindows.
size_t GetTTCIndex | ( | pdfium::span< const uint8_t > | pFontData, |
size_t | font_offset ) |
Definition at line 127 of file fx_font.cpp.
wchar_t UnicodeFromAdobeName | ( | const char * | name | ) |
Definition at line 138 of file fx_font.cpp.
References FXFT_unicode_from_adobe_name().
Referenced by CPDF_CIDFont::GlyphFromCharCode().
|
constexpr |
Definition at line 43 of file fx_font.h.
Referenced by GetNameFromTT().
|
constexpr |
Definition at line 44 of file fx_font.h.
Referenced by GetNameFromTT().