Foxit PDF SDK
FoxitPDFSDKPython3.FontMapResult Class Reference

Inherits FoxitPDFSDKPython3._object.

Public Member Functions

def FontMapResult ()
 Constructor. More...
 
def Set (file_read, face_index)
 Set value. More...
 

Static Public Attributes

 face_index = _swig_property(_fsdk.FontMapResult_face_index_get, _fsdk.FontMapResult_face_index_set)
 Face index. This is a zero-based index value: More...
 
 file_read = _swig_property(_fsdk.FontMapResult_file_read_get, _fsdk.FontMapResult_file_read_set)
 A FoxitPDFSDKPython3.FileReaderCallback object which is implemented by user. Foxit PDF SDK will use this callback object to read data for mapped font.If this is null, that means no mapped font.
 

Detailed Description

This class represents font mappping result returned by callback function FoxitPDFSDKPython3.FontMapperCallback.MapFont .

Constructor & Destructor Documentation

◆ FontMapResult()

def FoxitPDFSDKPython3.FontMapResult.FontMapResult ( )

Constructor.

Constructor, with another font mapping result object.

Constructor, with parameters.

Parameters
[in]file_readA FoxitPDFSDKPython3.FileReaderCallback object which is implemented by user. Foxit PDF SDK will use this callback object to read data for mapped font. If this is null, that means no mapped font.
[in]face_indexA zero-based index value:
  • If the mapped font (represented by file_read) is a "collection" (which means that a number of faces are stored in the same file), this index value represents the index of the mapped font face.

  • If the mapped font (represented by file_read) is not a collection, the index value shall be zero.

-1 means no mapped font.
[in]otherAnother font mapping result object.

Member Function Documentation

◆ Set()

def FoxitPDFSDKPython3.FontMapResult.Set (   file_read,
  face_index 
)

Set value.

Parameters
[in]file_readA FoxitPDFSDKPython3.FileReaderCallback object which is implemented by user. Foxit PDF SDK will use this callback object to read data for mapped font. If this is null, that means no mapped font.
[in]face_indexA zero-based index value:
  • If the mapped font (represented by file_read) is a "collection" (which means that a number of faces are stored in the same file), this index value represents the index of the mapped font face.

  • If the mapped font (represented by file_read) is not a collection, the index value shall be zero.

-1 means no mapped font.

Member Data Documentation

◆ face_index

FoxitPDFSDKPython3.FontMapResult.face_index = _swig_property(_fsdk.FontMapResult_face_index_get, _fsdk.FontMapResult_face_index_set)
static

Face index. This is a zero-based index value:

  • If the mapped font (represented by file_read) is a "collection" (which means that a number of faces are stored in the same file), this index value represents the index of the mapped font face.

  • If the mapped font (represented by file_read) is not a collection, the index value shall be zero.

-1 means no mapped font.