FontName

字体

描述

返回所选字体的名称,字体添加到文档时会自动选中,可使用 GetFontID 和 SelectFont 函数选择其他字体

语法

Delphi

Function TPDFlib.FontName: WideString;

ActiveX

Function PDFlib::FontName() As String

DLL

const wchar_t* DLFontName(int InstanceID);
const char* DLFontNameA(int InstanceID);

返回值

返回当前选定字体的名称;未选择字体时返回空字符串