SetCharWidth

Text, Form fields

Description

Sets the width of a specific character in the selected font.

The width uses is a ratio to the text size. For example, if a value of 750 is used the width of the character when output as 12pt text would be (750 / 1000) * 12.

Syntax

Delphi

function TPDFlib.SetCharWidth(CharCode, NewWidth: Integer): Integer;

ActiveX

Function PDFlib::SetCharWidth(CharCode As Long, NewWidth As Long) As Long

DLL

int DLSetCharWidth(int InstanceID, int CharCode, int NewWidth);

Parameters

CharCodeThe glyph character code that should be set. For example, 65 for "A".
NewWidthThe new width

Return values

0A font has not been selected The width was set successfully
1