SetKerningA
文字, 字型
描述
結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 SetKerning 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀
設定指定字元配對的 kerning 量
語法
Delphi
Function DLSetKerningA(InstanceID: Integer; CharPair: PAnsiChar; Adjustment: Integer): Integer;
DLL
int DLSetKerningA(int InstanceID, const char * CharPair, int Adjustment);
參數
| CharPair | 兩個字元的字串,內含組成 kerning 配對的字元,例如 "AW" |
|---|---|
| Adjustment | kerning 配對間距的縮減量。與 Adobe Illustrator 這類繪圖軟體顯示的值相同。值 1000 等於文字高度。 |
傳回值
| 0 | 無法設定 kerning。CharPair 長度不是 2 個字元,或尚未選取字型。 |
|---|---|
| 1 | 指定字元配對的 kerning 設定成功 |