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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Multibyte Text Work 5.7<br />

dlpdftextadvance call looks much like the dlpdfcontentwidetextwidth calls, but with some<br />

enhancements.<br />

void dlpdftextadvance (DLPDFTEXT *, DLPDFFONT *,<br />

PDEGraphicState *,<br />

PDETextState *,<br />

ASFixed, ASFixed,<br />

dlpdftext_X,<br />

ASFixed, ASFixedPoint *)<br />

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

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

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

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

• The fifth argument describes the point size of the font;<br />

• the sixth argument describes the set width of the font;<br />

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

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

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

order (e.g. Arabic);<br />

• the eighth argument indicates the angle of text (in counterclockwise degrees), supplied as an ASFixed<br />

value;<br />

• the ninth argument is a pointer to an ASFixedPoint; the X <strong>and</strong> Y position change resulting from this<br />

call is returned in ASFixed units in this ASFixedPoint.<br />

An exception will be raised for invalid parameters, or if the text advance could not be calculated.<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 dlpdftextadvance call, but

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

Saved successfully!

Ooh no, something went wrong!