Text justification

Navigation:  vpxPrint tags > Characters alignment >

Text justification

Previous pageReturn to chapter overviewNext page

 

<CENTER> <RIGHT> <DECIMAL> <JUSTIFY>

</CENTER> </RIGHT> </JUSTIFY>        

 

Syntax :               <CENTER=   [ decimalValue                           (in <UNITS> values)                                              

                                 | +decimalValue

                                 | #bookmark                  (until the bookmark column)                                                

                                 |  CcolumnNumber           (column: abs. or rel.)                                                

                                 | C+columnNumberIncrement                                       ]  

 

                 -OR-

 

<CENTER>                the cursor should be within a frame.

<RIGHT>

<JUSTIFY>                                

 

Programming notes :

The text after the tag will be justified within the area defined by the current point and the next tag or end of line.

The decimal value is expressed in the current units values.

The current font is used

The <#PAGES> tag does not interrupt the sequence and is understood as a standard text by vpxPrint.

There is no need to specify </JUSTIFY>,  </CENTER> or </RIGHT> after a frame close, this is done automatically by vpxPrint. These tags may be used to modify the justification within a frame.

 

 

Examples :

<CENTER=C60>This is centered.
The string 'This is centered.' is centered within the area from the current point to column 60.

<DECIMAL=12.5>999.99<B>123.45
The decimal point of the value 999.99 is aligned to 12.5 (inch or mm depending on the previous setting). Note that the <B> tag interrupts the text.

<RIGHT=C+20>Right justification
The string 'Right justification' is right justified (current column + 20).

<R10><C10><#10><R+10><C+20><FRAME#1><USE#1>

<JUSTIFY>This text is justified left and right within the frame. You don't need to stop the justification after the frame.</USE>