![]() |
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_folderfontinfo.h>
Classes | |
class | FontFaceInfo |
Public Member Functions | |
CFX_FolderFontInfo () | |
~CFX_FolderFontInfo () override | |
void | AddPath (const ByteString &path) |
bool | EnumFontList (CFX_FontMapper *pMapper) override |
void * | MapFont (int weight, bool bItalic, FX_Charset charset, int pitch_family, const ByteString &face) override |
void * | GetFont (const ByteString &face) override |
size_t | GetFontData (void *hFont, uint32_t table, pdfium::span< uint8_t > buffer) override |
void | DeleteFont (void *hFont) override |
bool | GetFaceName (void *hFont, ByteString *name) override |
bool | GetFontCharset (void *hFont, FX_Charset *charset) override |
Public Member Functions inherited from SystemFontInfoIface | |
virtual | ~SystemFontInfoIface ()=default |
Protected Member Functions | |
void | ScanPath (const ByteString &path) |
void | ScanFile (const ByteString &path) |
void | ReportFace (const ByteString &path, FILE *pFile, FX_FILESIZE filesize, uint32_t offset) |
void * | GetSubstFont (const ByteString &face) |
void * | FindFont (int weight, bool bItalic, FX_Charset charset, int pitch_family, const ByteString &family, bool bMatchName) |
Protected Attributes | |
std::map< ByteString, std::unique_ptr< FontFaceInfo > > | m_FontList |
std::vector< ByteString > | m_PathList |
UnownedPtr< CFX_FontMapper > | m_pMapper |
Friends | |
class | CFX_FolderFontInfoTest |
Definition at line 26 of file cfx_folderfontinfo.h.
|
default |
|
overridedefault |
void CFX_FolderFontInfo::AddPath | ( | const ByteString & | path | ) |
Definition at line 140 of file cfx_folderfontinfo.cpp.
Referenced by TEST().
Implements SystemFontInfoIface.
Definition at line 424 of file cfx_folderfontinfo.cpp.
|
overridevirtual |
Implements SystemFontInfoIface.
Definition at line 144 of file cfx_folderfontinfo.cpp.
Referenced by TEST().
|
protected |
Definition at line 310 of file cfx_folderfontinfo.cpp.
References FontFamilyIsFixedPitch(), GetFont(), CFX_FolderFontInfo::FontFaceInfo::IsEligibleForFindFont(), kANSI, CFX_FolderFontInfo::FontFaceInfo::kSimilarityScoreMax, and CFX_FolderFontInfo::FontFaceInfo::SimilarityScore().
|
overridevirtual |
Implements SystemFontInfoIface.
Definition at line 426 of file cfx_folderfontinfo.cpp.
|
overridevirtual |
Implements SystemFontInfoIface.
Definition at line 378 of file cfx_folderfontinfo.cpp.
Referenced by FindFont(), and GetSubstFont().
|
overridevirtual |
Implements SystemFontInfoIface.
Definition at line 433 of file cfx_folderfontinfo.cpp.
|
overridevirtual |
Implements SystemFontInfoIface.
Definition at line 383 of file cfx_folderfontinfo.cpp.
References fxcrt::GetUInt32MSBFirst(), kTableTTCF, CFX_FolderFontInfo::FontFaceInfo::m_FileSize, and CFX_FolderFontInfo::FontFaceInfo::m_FontOffset.
|
protected |
Definition at line 300 of file cfx_folderfontinfo.cpp.
References GetFont().
|
overridevirtual |
Implements SystemFontInfoIface.
Definition at line 370 of file cfx_folderfontinfo.cpp.
|
protected |
Definition at line 225 of file cfx_folderfontinfo.cpp.
References CFX_FontMapper::MakeTag(), fxcrt::ByteString::operator!=(), fxcrt::operator+(), and fxcrt::ByteString::operator+=().
Referenced by ScanFile().
|
protected |
Definition at line 181 of file cfx_folderfontinfo.cpp.
References kTableTTCF, and ReportFace().
Referenced by ScanPath().
|
protected |
Definition at line 151 of file cfx_folderfontinfo.cpp.
References fxcrt::ByteString::MakeLower(), fxcrt::ByteString::operator!=(), fxcrt::ByteString::operator+=(), fxcrt::ByteString::operator+=(), fxcrt::ByteString::operator==(), ScanFile(), and ScanPath().
Referenced by ScanPath().
|
friend |
Definition at line 49 of file cfx_folderfontinfo.h.
|
protected |
Definition at line 90 of file cfx_folderfontinfo.h.
|
protected |
Definition at line 91 of file cfx_folderfontinfo.h.
|
protected |
Definition at line 92 of file cfx_folderfontinfo.h.