PDFix SDK  7.2.0
Loading...
Searching...
No Matches
PdfFont Struct Referenceabstract

PdfFont class. More...

#include <pdfix.h>

Public Member Functions

virtual int GetFontName (wchar_t *buffer, int len) const =0
 Gets the name of a font. More...
 
virtual int GetFaceName (wchar_t *buffer, int len) const =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...
 
virtual bool GetEmbedded ()=0
 Checks if the font is embedded. More...
 
virtual int GetUnicodeFromCharcode (int charcode, wchar_t *buffer, int len)=0
 Gets the unicode value for the charcode. More...
 
virtual bool SetUnicodeForCharcode (int charcode, const wchar_t *buffer)=0
 Sets the unicode value for the charcode. More...
 
virtual PdsDictionaryGetObject () const =0
 Gets the font's dictionary object. More...
 

Detailed Description

PdfFont class.

PdfFont class.

Member Function Documentation

◆ GetEmbedded()

virtual bool PdfFont::GetEmbedded ( )
pure virtual

Checks if the font is embedded.

Returns
true is font is embedded, false otherwise.

◆ GetFaceName()

virtual int PdfFont::GetFaceName ( wchar_t *  buffer,
int  len 
) const
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 
) const
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.

◆ GetObject()

virtual PdsDictionary * PdfFont::GetObject ( ) const
pure virtual

Gets the font's dictionary object.

Returns
The requested font object.

◆ 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.

◆ GetUnicodeFromCharcode()

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

Gets the unicode value for the charcode.

Parameters
charcodethe font charcode
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.

◆ SetUnicodeForCharcode()

virtual bool PdfFont::SetUnicodeForCharcode ( int  charcode,
const wchar_t *  buffer 
)
pure virtual

Sets the unicode value for the charcode.

Parameters
charcodeThe font charcode
bufferThe new charcode unicode value. Unicode entry for the charcode is removed when nullptr.
Returns
true if value was set successfully, false otherwise.