GetFontID

文本, 字体

描述

返回指定字体的 ID。使用此函数前,应调用 FindFonts 或 FontCount

必须进行此操作,才能生成可在所选文档中使用的字体列表

语法

Delphi

Function TPDFlib.GetFontID(Index: Integer): Integer;

ActiveX

Function PDFlib::GetFontID(Index As Long) As Long

DLL

int DLGetFontID(int InstanceID, int Index);

参数

Index字体索引,第一个字体的索引为 1

返回值

0索引越界
Non-zero指定字体的 ID