Quick PDF logo

CharWidth

Text, Fonts

Description

Returns the width of a character for the selected font.

This width is returned as a ratio to the text size. For example, if this function returns 750 for a certain character, then the width of the character for a 12 point font will be (750 / 1000) * 12.

Syntax

Delphi

function TQuickPDF0813.CharWidth(CharCode: Integer): Integer;

ActiveX

Function QuickPDF0813.PDFLibrary::CharWidth(CharCode As Long) As Long

DLL

int QuickPDFCharWidth(int InstanceID, int CharCode)

Parameters

CharCode The character to determine the width for. For example, 65 is the character A.

Return values

The width of the specified character. Divide this value by 1000, and multiply by the text size in points to get the width of the character.

Copyright © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum