22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Multibyte Text Work 5.9<br />

dlpdftexttocontent<br />

Once a line of text to be set is generated, it can be placed into a content area using the<br />

dlpdftexttocontent function call. It is similar in declaration to the<br />

dlpdftextadvance call, but note the addition of the DLPDFCONTENT area pointer<br />

as the second parameter. Also note the additional ASFixed parameters:<br />

void dlpdftexttocontent (DLPDFTEXT *, DLPDFCONTENT *,<br />

DLPDFFONT *,<br />

PDEGraphicState *,<br />

PDETextState *,<br />

ASFixed, ASFixed, ASFixed, ASFixed,<br />

dlpdftext_X, ASFixed)<br />

• The first argument is a DLPDFTEXT area that contains text to be set...<br />

• ...to be placed in the indicated DLPDFCONTENT...<br />

• ...in the indicated DLPDFFONT...<br />

• ...using the supplied graphics of PDEGraphicState...<br />

• ...<strong>and</strong> text states of PDETextState.<br />

• The sixth parameter, the first of four ASFixed parameters, denotes font point size;<br />

• the seventh parameter is set width;<br />

• the eighth parameter is the X-axis value of the starting baseline position;<br />

• the ninth parameter is the Y-axis value of the baseline position;<br />

• the tenth parameter, dlpdftext_X, is one of DLPDFTEXT_X_LEFT or<br />

DLPDFTEXT_X_RIGHT, used to indicate whether the starting location is the left or<br />

right end (respectively) of the text, distinguishing a left-to-right line order (e.g.<br />

English) from a right-to-left line order (e.g. Arabic);<br />

• the eleventh parameter indicates the angle of text (in counterclockwise degrees),<br />

supplied as an ASFixed value.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!