SetKerningA

文本, 字体

描述

结尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅公开 Unicode 形式。其行为与 SetKerning 相同,字符串参数按当前 SetAnsiMode 代码页解释

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

语法

Delphi

Function DLSetKerningA(InstanceID: Integer; CharPair: PAnsiChar; Adjustment: Integer): Integer;

DLL

int DLSetKerningA(int InstanceID, const char * CharPair, int Adjustment);

参数

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

返回值

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