10.07.2015 Views

Download - Multivac!

Download - Multivac!

Download - Multivac!

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

To illustrate the size of the matchbox we will fill it with red color (see Figure 7.6b).Figure 7.6c vertically centers the text according to the xheight by defining a matchboxwith a corresponding box height.Figure 7.6d–f shows the matchbox (red) with various useful boxheight settings to determinethe height of the text to be centered in the box (blue).Fig. 7.6 Fitting text proportionally into a box according to different box heightsGenerated output Option list for PDF_fit_textline( )Kraxi Systemsa) boxsize={80 20} position=center fitmethod=autob)c)d)e)f)Kraxi SystemsKraxi SystemsKraxi SystemsKraxi SystemsKraxi Systemsboxsize={80 20} position=center fitmethod=automatchbox={boxheight={capheight none}fillcolor={rgb 1 0.8 0.8}}boxsize={80 20} position=center fitmethod=automatchbox={boxheight={xheight none}fillcolor={rgb 1 0.8 0.8}}boxsize={80 20} position=center fitmethod=automatchbox={boxheight={ascender none}fillcolor={rgb 1 0.8 0.8}}boxsize={80 20} position=center fitmethod=automatchbox={boxheight={ascender descender}fillcolor={rgb 1 0.8 0.8}}boxsize={80 20} position=center fitmethod=automatchbox={boxheight={fontsize none}fillcolor={rgb 1 0.8 0.8}}7.1.4 Aligning Text at a CharacterYou might want to align text at a certain character, e.g. at the decimal point in a number.As shown in Figure 7.7a, the text is positioned at the center of the fitbox. Using PDF_fit_textline( ) with the alignchar=. option the numbers are aligned at the dot character.You can omit the position option which places the dots in the center of the box. Inthis case, the default position={left bottom} will be used which places the dots at the referencepoint (see Figure 7.7b). In general, the alignment character will be placed with thelower right corner at the reference point.Fig. 7.7 Aligning a textline to the dot characterGenerated output Option list for PDF_fit_textline( )127.123a)12.01123.0boxsize={70 8} position={center bottom} alignchar=.4025.20127.123b)12.01123.0boxsize={70 8} position={left bottom} alignchar=.4025.207.1 Placing and Fitting Single-Line Text 137

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

Saved successfully!

Ooh no, something went wrong!