SetKerning
文字, 字型
描述
設定指定字元配對的 kerning 量
語法
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 | 兩個字元的字串,內含組成 kerning 配對的字元,例如 "AW" |
|---|---|
| Adjustment | kerning 配對間距的縮減量。與 Adobe Illustrator 這類繪圖軟體顯示的值相同。值 1000 等於文字高度。 |
傳回值
| 0 | 無法設定 kerning。CharPair 長度不是 2 個字元,或尚未選取字型。 |
|---|---|
| 1 | 指定字元配對的 kerning 設定成功 |