DrawSpacedTextA

Text, Page layout

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to DrawSpacedText and string arguments are interpreted using the current SetAnsiMode code page

Draws text on the selected page, using the selected font at the predetermined font size. If no fonts have been added, then the 12 pt Helvetica will automatically be added and selected. Each character will be spaced at regular intervals. The individual characters will be aligned relative to the XPos variable depending on how the SetTextAlign function has been used.

Syntax

Delphi

Function DLDrawSpacedTextA(InstanceID: Integer; XPos, YPos, Spacing: Double; Text: PAnsiChar): Integer;

DLL

int DLDrawSpacedTextA(int InstanceID, double XPos, double YPos, double Spacing, const char * Text);

Parameters

XPosThe horizontal position of where to draw the text The vertical position of where to draw the text. The reference point is the text baseline.
YPosThe spacing between the same point on each character
Spacing
TextThe text to draw on the page