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 Long

DLL

int DLSetKerning(int InstanceID, wchar_t * CharPair, int Adjustment);

Parameters

CharPairA two-character string containing the characters making the kerning pair, for example "AW"
AdjustmentThe 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

0The kerning could not be set. Either the CharPair was not 2 characters in length, or a font has not been selected.
1The kerning for the specified pair of characters was set successfully