Debenu Quick PDF logo

SetKerning

Text, Fonts

Description

Sets the amount of kerning for the specified character pair.

Syntax

Delphi

function TDebenuPDFLibrary1511.SetKerning(CharPair: WideString; 
  Adjustment: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::SetKerning(CharPair As String,
  Adjustment As Long) As Long

DLL

int DPLSetKerning(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

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport