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 TPDFlib.CharWidth(CharCode: Integer): Integer;ActiveX
Function PDFlib::CharWidth(CharCode As Long) As LongDLL
int DLCharWidth(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. |