Foxit PDF SDK
fsdk.FontMapResult Class Reference

Public Member Functions

def GetFace_index ()
 Get face index. More...
 
def GetFile_read ()
 Get a fsdk.FileReaderCallback object which is implemented by user. More...
 
def Set (file_read, face_index)
 Set value.
More...
 
def SetFace_index (value)
 Set face index. More...
 
def SetFile_read (value)
 Set a fsdk.FileReaderCallback object which is implemented by user. More...
 

Detailed Description

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

Member Function Documentation

◆ GetFace_index()

fsdk.FontMapResult.GetFace_index ( )

Get face index.

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

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

◆ GetFile_read()

fsdk.FontMapResult.GetFile_read ( )

Get a fsdk.FileReaderCallback object which is implemented by user.

Returns
A fsdk.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.

◆ Set()

def fsdk.FontMapResult.Set (   file_read,
  face_index 
)

Set value.

Parameters
[in]file_readA fsdk.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.

◆ SetFace_index()

fsdk.FontMapResult.SetFace_index (   value)

Set face index.

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

Parameters
[in]valueFace index. This is a zero-based index value:
Returns
None.

◆ SetFile_read()

fsdk.FontMapResult.SetFile_read (   value)

Set a fsdk.FileReaderCallback object which is implemented by user.

Parameters
[in]valueA fsdk.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.
Returns
None.