SetKerningA
Text, Fonts
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SetKerning and string arguments are interpreted using the current SetAnsiMode code page
Sets the amount of kerning for the specified character pair.
Syntax
Delphi
Function DLSetKerningA(InstanceID: Integer; CharPair: PAnsiChar; Adjustment: Integer): Integer;
DLL
int DLSetKerningA(int InstanceID, const char * 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 |