Foxit PDF SDK  9.1
FSFontMapResult Class Reference
Inheritance diagram for FSFontMapResult:

Instance Methods

(void) - dealloc
 
(void *) - getCptr
 
(id) - init
 Constructor.
More...
 
(id) - initWithCptr:swigOwnCObject:
 
(id) - initWithFile_read:face_index:
 Constructor, with parameters.
More...
 
(id) - initWithOther:
 Constructor, with another font mapping result object.
More...
 
(void) - set:face_index:
 Set value.
More...
 

Protected Attributes

BOOL swigCMemOwn
 
void * swigCPtr
 

Properties

int face_index
 Face index. This is a zero-based index value:
More...
 
id< FSFileReaderCallbackfile_read
 A common::file::ReaderCallback object which is implemented by user. Foxit PDF SDK will use this callback object to read data for mapped font.If this is nil, that means no mapped font.
More...
 

Detailed Description

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

Method Documentation

◆ dealloc

- (void) dealloc

◆ getCptr

- (void*) getCptr

◆ init

- (id) init

Constructor.

◆ initWithCptr:swigOwnCObject:

- (id) initWithCptr: (void *)  cptr
swigOwnCObject: (BOOL)  ownCObject 

◆ initWithFile_read:face_index:

- (id) initWithFile_read: (id<FSFileReaderCallback>)  file_read
face_index: (int)  face_index 

Constructor, with parameters.

Parameters
[in]file_readA common::file::ReaderCallback object which is implemented by user. Foxit PDF SDK will use this callback object to read data for mapped font. If this is nil, 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.

◆ initWithOther:

- (id) initWithOther: (FSFontMapResult*)  other

Constructor, with another font mapping result object.

Parameters
[in]otherAnother font mapping result object.

◆ set:face_index:

- (void) set: (id<FSFileReaderCallback>)  file_read
face_index: (int)  face_index 

Set value.

Parameters
[in]file_readA common::file::ReaderCallback object which is implemented by user. Foxit PDF SDK will use this callback object to read data for mapped font. If this is nil, 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

◆ swigCMemOwn

- (BOOL) swigCMemOwn
protected

◆ swigCPtr

- (void*) swigCPtr
protected

Property Documentation

◆ face_index

- (int) face_index
readwritenonatomicassign

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.

◆ file_read

- (id< FSFileReaderCallback >) file_read
readwritenonatomicassign

A common::file::ReaderCallback object which is implemented by user. Foxit PDF SDK will use this callback object to read data for mapped font.If this is nil, that means no mapped font.