Debenu Quick PDF logo

SetCharWidth

Text, Form fields

Version history

This function was introduced in Quick PDF Library version 7.11.

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 TDebenuPDFLibrary1511.SetCharWidth(CharCode, NewWidth: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::SetCharWidth(CharCode As Long,
  NewWidth As Long) As Long

DLL

int DPLSetCharWidth(int InstanceID, int CharCode, int NewWidth)

Parameters

CharCode The glyph character code that should be set. For example, 65 for "A".
NewWidth The new width

Return values

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

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport