SetKerning

文本, 字体

描述

设置指定字符对的字距调整量

语法

Delphi

Function TPDFlib.SetKerning(Const CharPair: WideString; Adjustment: Integer): Integer;

ActiveX

Function PDFlib::SetKerning(CharPair As String, Adjustment As Long) As Long

DLL

int DLSetKerning(int InstanceID, const wchar_t * CharPair, int Adjustment);

参数

CharPair包含组成字偶距对的字符的两个字符字符串,例如 "AW"
Adjustment要减少的字距调整字偶间距。此值与 Adobe Illustrator 等图形程序中显示的值相同。值 1000 与文本高度相同

返回值

0无法设置字距调整。CharPair 长度不是 2 个字符,或尚未选定字体
1指定字符对的字距调整已成功设置