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
CFX_FolderFontInfo Class Reference

#include <cfx_folderfontinfo.h>

+ Inheritance diagram for CFX_FolderFontInfo:
+ Collaboration diagram for CFX_FolderFontInfo:

Classes

class  FontFaceInfo
 

Public Member Functions

 CFX_FolderFontInfo ()
 
 ~CFX_FolderFontInfo () override
 
void AddPath (const ByteString &path)
 
bool EnumFontList (CFX_FontMapper *pMapper) override
 
voidMapFont (int weight, bool bItalic, FX_Charset charset, int pitch_family, const ByteString &face) override
 
voidGetFont (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)
 
voidGetSubstFont (const ByteString &face)
 
voidFindFont (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< ByteStringm_PathList
 
UnownedPtr< CFX_FontMapperm_pMapper
 

Friends

class CFX_FolderFontInfoTest
 

Detailed Description

Definition at line 26 of file cfx_folderfontinfo.h.

Constructor & Destructor Documentation

◆ CFX_FolderFontInfo()

CFX_FolderFontInfo::CFX_FolderFontInfo ( )
default

◆ ~CFX_FolderFontInfo()

CFX_FolderFontInfo::~CFX_FolderFontInfo ( )
overridedefault

Member Function Documentation

◆ AddPath()

void CFX_FolderFontInfo::AddPath ( const ByteString & path)

Definition at line 153 of file cfx_folderfontinfo.cpp.

Referenced by TEST().

+ Here is the caller graph for this function:

◆ DeleteFont()

void CFX_FolderFontInfo::DeleteFont ( void * hFont)
overridevirtual

Implements SystemFontInfoIface.

Definition at line 410 of file cfx_folderfontinfo.cpp.

◆ EnumFontList()

bool CFX_FolderFontInfo::EnumFontList ( CFX_FontMapper * pMapper)
overridevirtual

Implements SystemFontInfoIface.

Definition at line 157 of file cfx_folderfontinfo.cpp.

Referenced by TEST().

+ Here is the caller graph for this function:

◆ FindFont()

void * CFX_FolderFontInfo::FindFont ( int weight,
bool bItalic,
FX_Charset charset,
int pitch_family,
const ByteString & family,
bool bMatchName )
protected

Definition at line 316 of file cfx_folderfontinfo.cpp.

References FontFamilyIsFixedPitch(), GetFont(), and kANSI.

+ Here is the call graph for this function:

◆ GetFaceName()

bool CFX_FolderFontInfo::GetFaceName ( void * hFont,
ByteString * name )
overridevirtual

Implements SystemFontInfoIface.

Definition at line 412 of file cfx_folderfontinfo.cpp.

◆ GetFont()

void * CFX_FolderFontInfo::GetFont ( const ByteString & face)
overridevirtual

Implements SystemFontInfoIface.

Definition at line 366 of file cfx_folderfontinfo.cpp.

Referenced by FindFont(), and GetSubstFont().

+ Here is the caller graph for this function:

◆ GetFontCharset()

bool CFX_FolderFontInfo::GetFontCharset ( void * hFont,
FX_Charset * charset )
overridevirtual

Implements SystemFontInfoIface.

Definition at line 419 of file cfx_folderfontinfo.cpp.

◆ GetFontData()

size_t CFX_FolderFontInfo::GetFontData ( void * hFont,
uint32_t table,
pdfium::span< uint8_t > buffer )
overridevirtual

◆ GetSubstFont()

void * CFX_FolderFontInfo::GetSubstFont ( const ByteString & face)
protected

Definition at line 308 of file cfx_folderfontinfo.cpp.

References GetFont().

+ Here is the call graph for this function:

◆ MapFont()

void * CFX_FolderFontInfo::MapFont ( int weight,
bool bItalic,
FX_Charset charset,
int pitch_family,
const ByteString & face )
overridevirtual

Implements SystemFontInfoIface.

Definition at line 358 of file cfx_folderfontinfo.cpp.

◆ ReportFace()

void CFX_FolderFontInfo::ReportFace ( const ByteString & path,
FILE * pFile,
FX_FILESIZE filesize,
uint32_t offset )
protected

Definition at line 234 of file cfx_folderfontinfo.cpp.

References fxcrt::ByteString::IsEmpty(), CFX_FontMapper::MakeTag(), fxcrt::ByteString::operator!=(), fxcrt::operator+(), fxcrt::ByteString::operator+=(), and fxcrt::ByteString::raw_str().

Referenced by ScanFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ScanFile()

void CFX_FolderFontInfo::ScanFile ( const ByteString & path)
protected

Definition at line 194 of file cfx_folderfontinfo.cpp.

References kTableTTCF, and ReportFace().

Referenced by ScanPath().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ScanPath()

void CFX_FolderFontInfo::ScanPath ( const ByteString & path)
protected

Definition at line 164 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ CFX_FolderFontInfoTest

friend class CFX_FolderFontInfoTest
friend

Definition at line 49 of file cfx_folderfontinfo.h.

Member Data Documentation

◆ m_FontList

std::map<ByteString, std::unique_ptr<FontFaceInfo> > CFX_FolderFontInfo::m_FontList
protected

Definition at line 82 of file cfx_folderfontinfo.h.

◆ m_PathList

std::vector<ByteString> CFX_FolderFontInfo::m_PathList
protected

Definition at line 83 of file cfx_folderfontinfo.h.

◆ m_pMapper

UnownedPtr<CFX_FontMapper> CFX_FolderFontInfo::m_pMapper
protected

Definition at line 84 of file cfx_folderfontinfo.h.


The documentation for this class was generated from the following files: