PDFix SDK  6.5.0
PdfFont Struct Referenceabstract

PdfFont class. More...

Public Member Functions

virtual int GetFontName (wchar_t *buffer, int len)=0
 Gets the name of a font. More...
 
virtual int GetFaceName (wchar_t *buffer, int len)=0
 Gets the face of a font. More...
 
virtual void GetFontState (PdfFontState *font_state)=0
 Gets the font state of a font. More...
 
virtual int GetSystemFontName (wchar_t *buffer, int len)=0
 Gets the name of a font which is a system replacement for the font. More...
 
virtual PdfFontCharset GetSystemFontCharset ()=0
 Gets the charset of a font which is a system replacement for the font. More...
 
virtual bool GetSystemFontBold ()=0
 Gets the the system font bold flag. More...
 
virtual bool GetSystemFontItalic ()=0
 Gets the the system font italic flag. More...
 
virtual bool SaveToStream (PsStream *stream, PdfFontFormat format)=0
 Saves the font into a font file. More...
 

Detailed Description

PdfFont class.

PdfFont class.

Member Function Documentation

◆ GetFaceName()

virtual int PdfFont::GetFaceName ( wchar_t *  buffer,
int  len 
)
pure virtual

Gets the face of a font.

Parameters
buffer(filled by method) If the buffer is null function returns required length of string
lenLength of a buffer to be filled in.
Returns
Number of characters written into buffer of required length.

◆ GetFontName()

virtual int PdfFont::GetFontName ( wchar_t *  buffer,
int  len 
)
pure virtual

Gets the name of a font.

Parameters
buffer(filled by method) If the buffer is null function returns required length of string
lenLength of a buffer to be filled in.
Returns
Number of characters written into buffer of required length.

◆ GetFontState()

virtual void PdfFont::GetFontState ( PdfFontState font_state)
pure virtual

Gets the font state of a font.

Parameters
font_state(filled by method) Pointer to font state structure to be filled in.
Returns
true if optaining the font state was succsessfull, false otherwise.

◆ GetSystemFontBold()

virtual bool PdfFont::GetSystemFontBold ( )
pure virtual

Gets the the system font bold flag.

Returns
true is font is bold, false otherwise.

◆ GetSystemFontCharset()

virtual PdfFontCharset PdfFont::GetSystemFontCharset ( )
pure virtual

Gets the charset of a font which is a system replacement for the font.

Returns
Number of charset of a font.

◆ GetSystemFontItalic()

virtual bool PdfFont::GetSystemFontItalic ( )
pure virtual

Gets the the system font italic flag.

Returns
true is font is italic, false otherwise.

◆ GetSystemFontName()

virtual int PdfFont::GetSystemFontName ( wchar_t *  buffer,
int  len 
)
pure virtual

Gets the name of a font which is a system replacement for the font.

Parameters
buffer(filled by method) If the buffer is null function returns required length of string
lenLength of a buffer to be filled in.
Returns
Number of characters written into buffer of required length.

◆ SaveToStream()

virtual bool PdfFont::SaveToStream ( PsStream stream,
PdfFontFormat  format 
)
pure virtual

Saves the font into a font file.

Parameters
PsStreamin which to save font data in requested format.
formatPdfFontFormat.
Returns
true if succeeded, false otherwise.