Foxit PDF SDK
FoxitPDFSDKPython2.FontMapperCallback Class Reference

Inherits FoxitPDFSDKPython2._object.

Public Member Functions

def MapFont (font_family_name, charset, styles, weight, italic_angle)
 A callback function used to map a suitable font according to input parameters.
More...
 
def Release ()
 A callback function used to release current callback object itself.
More...
 

Detailed Description

This class represents a callback object to map font in customized way. All the pure virtual functions in this class are used as callback functions and should be implemented by user. An implemented FontMapperCallback object can be set to Foxit PDF SDK by function FoxitPDFSDKPython2.Library.SetFontMapperCallback .

See also
Library

Member Function Documentation

◆ MapFont()

def FoxitPDFSDKPython2.FontMapperCallback.MapFont (   font_family_name,
  charset,
  styles,
  weight,
  italic_angle 
)

A callback function used to map a suitable font according to input parameters.

Parameters
[in]font_family_nameFont family name.
[in]charsetThe charset of the font to be mapped. Please refer to values starting from FoxitPDFSDKPython2.Font.e_CharsetANSI and this would be one of these values.
[in]stylesFont styles. Please refer to values starting from FoxitPDFSDKPython2.Font.e_StyleFixedPitch and this would be one or a combination of these values.
[in]weightOriginal font weight. 0 means unspecified.
[in]italic_angleItalic angle.
Returns
Font family name array. If the returned array is empty, that means no mapped font is found.

◆ Release()

def FoxitPDFSDKPython2.FontMapperCallback.Release ( )

A callback function used to release current callback object itself.

Returns
None.