Foxit PDF SDK
FSFontMapResult类 参考

继承自 NSObject .

构造函数

(id) - init
 构造函数。

 
(id) - initWithFile_read:face_index:
 带参数的构造函数。
更多...
 
(id) - initWithOther:
 使用另一个字体映射结果对象的构造函数。
更多...
 
(void) - set:face_index:
 设置值。
更多...
 

属性

int face_index
 字体面索引。这是基于零的索引值:
更多...
 
id< FSFileReaderCallbackfile_read
 由用户实现的 FSFileReaderCallback 对象。Foxit PDF SDK将使用此 回调对象来读取映射字体的数据。如果这是 nil,意味着没有映射字体。

 

详细描述

此类表示由回调函数 FSFontMapperCallback::mapFont:is_truetype:styles:weight:italic_angle:charset: 返回的字体映射结果。

函数文档

◆ initWithFile_read:face_index:()

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

带参数的构造函数。

参数
[in]file_read由用户实现的 FSFileReaderCallback 对象。Foxit PDF SDK将使用此 回调对象来读取映射字体的数据。如果这是 nil,意味着没有映射字体。
[in]face_index基于零的索引值:
  • 如果映射的字体(由 file_read 表示)是"集合"(意味着 多个字体面存储在同一文件中),此索引值表示映射字体面的索引。
  • 如果映射的字体(由 file_read 表示)不是集合,索引值应为零。
-1表示没有映射字体。

◆ initWithOther:()

- (id) initWithOther: (FSFontMapResult*)  other

使用另一个字体映射结果对象的构造函数。

参数
[in]other另一个字体映射结果对象。

◆ set:face_index:()

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

设置值。

参数
[in]file_read由用户实现的 FSFileReaderCallback 对象。Foxit PDF SDK将使用此 回调对象来读取映射字体的数据。如果这是 nil,意味着没有映射字体。
[in]face_index基于零的索引值:
  • 如果映射的字体(由 file_read 表示)是"集合"(意味着 多个字体面存储在同一文件中),此索引值表示映射字体面的索引。
  • 如果映射的字体(由 file_read 表示)不是集合,索引值应为零。
-1表示没有映射字体。

属性说明

◆ face_index

- (int) face_index
readwritenonatomicassign

字体面索引。这是基于零的索引值:

  • 如果映射的字体(由 file_read 表示)是"集合"(意味着 多个字体面存储在同一文件中),此索引值表示映射字体面的索引。
  • 如果映射的字体(由 file_read 表示)不是集合,索引值应为零。

-1表示没有映射字体。