Foxit PDF SDK
foxit::common::FontMapResult类 参考

继承自 Object .

Public 成员函数

 FontMapResult ()
 构造函数。
 
 FontMapResult (foxit::common::file::ReaderCallback *file_read, int face_index)
 带参数的构造函数。 更多...
 
 FontMapResult (const FontMapResult &other)
 使用另一个字体映射结果对象的构造函数。 更多...
 
bool operator != (const FontMapResult &other) const
 不相等操作符。 更多...
 
FontMapResultoperator= (const FontMapResult &other)
 赋值操作符。 更多...
 
bool operator== (const FontMapResult &other) const
 相等操作符。 更多...
 
void Set (foxit::common::file::ReaderCallback *file_read, int face_index)
 设置值。 更多...
 

Public 属性

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

详细描述

此类表示由回调函数 FontMapperCallback::MapFont 返回的字体映射结果。

构造及析构函数说明

◆ FontMapResult() [1/2]

foxit::common::FontMapResult::FontMapResult ( foxit::common::file::ReaderCallback file_read,
int  face_index 
)
inline

带参数的构造函数。

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

◆ FontMapResult() [2/2]

foxit::common::FontMapResult::FontMapResult ( const FontMapResult other)
inline

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

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

成员函数说明

◆ operator !=()

bool foxit::common::FontMapResult::operator != ( const FontMapResult other) const
inline

不相等操作符。

参数
[in]other另一个字体映射结果对象。此函数将检查当前对象是否不等于此对象。
返回
true 表示不相等,false 表示相等。

◆ operator=()

FontMapResult& foxit::common::FontMapResult::operator= ( const FontMapResult other)
inline

赋值操作符。

参数
[in]other另一个字体映射结果对象,其值将被赋给当前对象。
返回
对当前对象本身的引用。

◆ operator==()

bool foxit::common::FontMapResult::operator== ( const FontMapResult other) const
inline

相等操作符。

参数
[in]other另一个字体映射结果对象。此函数将检查当前对象是否等于此对象。
返回
true 表示相等,false 表示不相等。

◆ Set()

void foxit::common::FontMapResult::Set ( foxit::common::file::ReaderCallback file_read,
int  face_index 
)
inline

设置值。

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

类成员变量说明

◆ face_index

int foxit::common::FontMapResult::face_index

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

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

-1表示没有映射字体。