SetCharWidth

文本、表单字段

描述

设置所选字体中特定字符的宽度

宽度使用与字号的比率。例如,若使用值 750,以 12pt 文本输出时字符宽度为 (750 / 1000) * 12

语法

Delphi

Function TPDFlib.SetCharWidth(CharCode, NewWidth: Integer): Integer;

ActiveX

Function PDFlib::SetCharWidth(CharCode As Long, NewWidth As Long) As Long

DLL

int DLSetCharWidth(int InstanceID, int CharCode, int NewWidth);

参数

CharCode应设置的字形字符代码。例如,65 表示 "A"
NewWidth新宽度

返回值

0尚未选择字体
1宽度已成功设置