SelectFont

文本, 字体

描述

从已添加到选定文档的字体中选择一种 FontID 必须是由某个 Add*Font 函数返回或由 GetFontID 返回的有效 ID

语法

Delphi

Function TPDFlib.SelectFont(FontID: Integer): Integer;

ActiveX

Function PDFlib::SelectFont(FontID As Long) As Long

DLL

int DLSelectFont(int InstanceID, int FontID);

参数

FontID要选择的字体 ID

返回值

0找不到指定的 ID
1字体已成功选定