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
fpdf_sysfontinfo.cpp File Reference

(9c1f44f67466fea2fb20bb6f31fea388d8c65961)

#include "public/fpdf_sysfontinfo.h"
#include <stddef.h>
#include <memory>
#include "core/fxcrt/fx_codepage.h"
#include "core/fxcrt/stl_util.h"
#include "core/fxcrt/unowned_ptr.h"
#include "core/fxge/cfx_font.h"
#include "core/fxge/cfx_fontmapper.h"
#include "core/fxge/cfx_fontmgr.h"
#include "core/fxge/cfx_gemodule.h"
#include "core/fxge/fx_font.h"
#include "core/fxge/systemfontinfo_iface.h"
#include "third_party/base/numerics/safe_conversions.h"
+ Include dependency graph for fpdf_sysfontinfo.cpp:

Go to the source code of this file.

Classes

class  CFX_ExternalFontInfo
 
struct  FPDF_SYSFONTINFO_DEFAULT
 

Functions

FPDF_EXPORT void FPDF_CALLCONV FPDF_AddInstalledFont (void *mapper, const char *face, int charset)
 
FPDF_EXPORT void FPDF_CALLCONV FPDF_SetSystemFontInfo (FPDF_SYSFONTINFO *pFontInfoExt)
 
FPDF_EXPORT const FPDF_CharsetFontMap *FPDF_CALLCONV FPDF_GetDefaultTTFMap ()
 
static void DefaultRelease (struct _FPDF_SYSFONTINFO *pThis)
 
static void DefaultEnumFonts (struct _FPDF_SYSFONTINFO *pThis, void *pMapper)
 
static voidDefaultMapFont (struct _FPDF_SYSFONTINFO *pThis, int weight, FPDF_BOOL use_italic, int charset, int pitch_family, const char *family, FPDF_BOOL *)
 
voidDefaultGetFont (struct _FPDF_SYSFONTINFO *pThis, const char *family)
 
static unsigned long DefaultGetFontData (struct _FPDF_SYSFONTINFO *pThis, void *hFont, unsigned int table, unsigned char *buffer, unsigned long buf_size)
 
static unsigned long DefaultGetFaceName (struct _FPDF_SYSFONTINFO *pThis, void *hFont, char *buffer, unsigned long buf_size)
 
static int DefaultGetFontCharset (struct _FPDF_SYSFONTINFO *pThis, void *hFont)
 
static void DefaultDeleteFont (struct _FPDF_SYSFONTINFO *pThis, void *hFont)
 
FPDF_EXPORT FPDF_SYSFONTINFO *FPDF_CALLCONV FPDF_GetDefaultSystemFontInfo ()
 
FPDF_EXPORT void FPDF_CALLCONV FPDF_FreeDefaultSystemFontInfo (FPDF_SYSFONTINFO *pFontInfo)
 

Function Documentation

◆ DefaultDeleteFont()

static void DefaultDeleteFont ( struct _FPDF_SYSFONTINFO * pThis,
void * hFont )
static

Definition at line 240 of file fpdf_sysfontinfo.cpp.

Referenced by FPDF_GetDefaultSystemFontInfo().

+ Here is the caller graph for this function:

◆ DefaultEnumFonts()

static void DefaultEnumFonts ( struct _FPDF_SYSFONTINFO * pThis,
void * pMapper )
static

Definition at line 182 of file fpdf_sysfontinfo.cpp.

Referenced by FPDF_GetDefaultSystemFontInfo().

+ Here is the caller graph for this function:

◆ DefaultGetFaceName()

static unsigned long DefaultGetFaceName ( struct _FPDF_SYSFONTINFO * pThis,
void * hFont,
char * buffer,
unsigned long buf_size )
static

Definition at line 215 of file fpdf_sysfontinfo.cpp.

References fxcrt::ByteString::c_str().

Referenced by FPDF_GetDefaultSystemFontInfo().

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

◆ DefaultGetFont()

void * DefaultGetFont ( struct _FPDF_SYSFONTINFO * pThis,
const char * family )

Definition at line 200 of file fpdf_sysfontinfo.cpp.

Referenced by FPDF_GetDefaultSystemFontInfo().

+ Here is the caller graph for this function:

◆ DefaultGetFontCharset()

static int DefaultGetFontCharset ( struct _FPDF_SYSFONTINFO * pThis,
void * hFont )
static

Definition at line 232 of file fpdf_sysfontinfo.cpp.

Referenced by FPDF_GetDefaultSystemFontInfo().

+ Here is the caller graph for this function:

◆ DefaultGetFontData()

static unsigned long DefaultGetFontData ( struct _FPDF_SYSFONTINFO * pThis,
void * hFont,
unsigned int table,
unsigned char * buffer,
unsigned long buf_size )
static

Definition at line 205 of file fpdf_sysfontinfo.cpp.

Referenced by FPDF_GetDefaultSystemFontInfo().

+ Here is the caller graph for this function:

◆ DefaultMapFont()

static void * DefaultMapFont ( struct _FPDF_SYSFONTINFO * pThis,
int weight,
FPDF_BOOL use_italic,
int charset,
int pitch_family,
const char * family,
FPDF_BOOL *  )
static

Definition at line 187 of file fpdf_sysfontinfo.cpp.

References FX_GetCharsetFromInt().

Referenced by FPDF_GetDefaultSystemFontInfo().

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

◆ DefaultRelease()

static void DefaultRelease ( struct _FPDF_SYSFONTINFO * pThis)
static

Definition at line 177 of file fpdf_sysfontinfo.cpp.

Referenced by FPDF_GetDefaultSystemFontInfo().

+ Here is the caller graph for this function:

◆ FPDF_AddInstalledFont()

FPDF_EXPORT void FPDF_CALLCONV FPDF_AddInstalledFont ( void * mapper,
const char * face,
int charset )

Definition at line 149 of file fpdf_sysfontinfo.cpp.

References CFX_FontMapper::AddInstalledFont(), and FX_GetCharsetFromInt().

Referenced by CheckPDFiumCApi().

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

◆ FPDF_FreeDefaultSystemFontInfo()

FPDF_EXPORT void FPDF_CALLCONV FPDF_FreeDefaultSystemFontInfo ( FPDF_SYSFONTINFO * pFontInfo)

Definition at line 267 of file fpdf_sysfontinfo.cpp.

Referenced by CheckPDFiumCApi().

+ Here is the caller graph for this function:

◆ FPDF_GetDefaultSystemFontInfo()

FPDF_EXPORT FPDF_SYSFONTINFO *FPDF_CALLCONV FPDF_GetDefaultSystemFontInfo ( )

Definition at line 245 of file fpdf_sysfontinfo.cpp.

References DefaultDeleteFont(), DefaultEnumFonts(), DefaultGetFaceName(), DefaultGetFont(), DefaultGetFontCharset(), DefaultGetFontData(), DefaultMapFont(), DefaultRelease(), _FPDF_SYSFONTINFO::DeleteFont, _FPDF_SYSFONTINFO::EnumFonts, _FPDF_SYSFONTINFO::GetFaceName, _FPDF_SYSFONTINFO::GetFont, _FPDF_SYSFONTINFO::GetFontCharset, _FPDF_SYSFONTINFO::GetFontData, _FPDF_SYSFONTINFO::MapFont, _FPDF_SYSFONTINFO::Release, and _FPDF_SYSFONTINFO::version.

Referenced by CheckPDFiumCApi().

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

◆ FPDF_GetDefaultTTFMap()

FPDF_EXPORT const FPDF_CharsetFontMap *FPDF_CALLCONV FPDF_GetDefaultTTFMap ( )

Definition at line 169 of file fpdf_sysfontinfo.cpp.

References CFX_Font::kDefaultTTFMap.

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the caller graph for this function:

◆ FPDF_SetSystemFontInfo()

FPDF_EXPORT void FPDF_CALLCONV FPDF_SetSystemFontInfo ( FPDF_SYSFONTINFO * pFontInfoExt)

Definition at line 157 of file fpdf_sysfontinfo.cpp.

References CFX_GEModule::Get(), CFX_FontMgr::GetBuiltinMapper(), CFX_GEModule::GetFontMgr(), and _FPDF_SYSFONTINFO::version.

Referenced by CheckPDFiumCApi().

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