SetKerning
Text, Fonts
Description
Sets the amount of kerning for the specified character pair.
Syntax
Delphi
function TPDFlib.SetKerning(Const CharPair: WideString; Adjustment: Integer): Integer;ActiveX
Function PDFlib::SetKerning(CharPair As String, Adjustment As Long) As LongDLL
int DLSetKerning(int InstanceID, wchar_t * CharPair, int Adjustment);Parameters
| CharPair | A two-character string containing the characters making the kerning pair, for example "AW" |
|---|---|
| Adjustment | The amount to reduce the space between the kerning pair by. This is the same value as shown in graphics programs such as Adobe Illustrator. A value of 1000 is the same as the height of the text. |
Return values
| 0 | The kerning could not be set. Either the CharPair was not 2 characters in length, or a font has not been selected. |
|---|---|
| 1 | The kerning for the specified pair of characters was set successfully |