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.

Generated output Option list for PDF_fit_textline( )Kraxie) boxsize={0 35} position={left center} orientate=westAligning text at a horizontal or vertical line. Positioning text along a horizontal orvertical line (i.e. a box with zero height or width) is a somewhat extreme case which maybe useful nevertheless. In Figure 7.4d the text is placed with the bottom centered at thebox. With a width of 50 and a height of 0, the box resembles to a horizontal line.To align the text centered along a vertical line we will orientate it to the west and positionit at the left center of the box. This case is shown in Figure 7.4e.7.1.3 Fitting Text into a BoxIn this section we use various fit methods to fit the text into the box. The current fontand font size are assumed to be the same in all examples so that we can see how the fontsize and other properties will implicitly be changed by the different fit methods.Let’s start with the default case: no fit method will be used so that no clipping or scalingoccurs. The text will be placed in the center of the box which is 100 units wide and 35units high (see Figure 7.5a).Decreasing the box width from 100 to 50 units doesn’t have any effect on the output.The text will remain in its original font size and will exceed beyond the box (see Figure7.5b).Proportionally fitting text into a small box. Now we will completely fit the text intothe box while maintaining its proportions. This can be achieved with thefitmethod=auto option. In Figure 7.5c the box is wide enough to keep the text in its originalsize completely so that the text will be fit into the box unchanged.When scaling down the width of the box from 100 to 58, the text is too long to fitcompletely. The auto fit method will try to condense the text horizontally, subject to theshrinklimit option (default: 0.75). Figure 7.5d shows the text being shrunk down to 75 percentof its original length.When decreasing the box width further down to 30 units the text will not fit even ifshrinking is applied. Then the meet method will be applied. The meet method will decreasethe font size until the text fits completely into the box. This case is shown in Figure7.5e.Fitting the text into the box with increased font size. You might want to fit the text sothat it covers the whole width (or height) of the box but maintains its proportions. Usingfitmethod=meet with a box larger than the text, the text will be increased until itswidth matches the box width. This case is illustrated in Figure 7.5f.Completely fitting text into a box. We can further fit the text so that it completely fillsthe box. In this case, fitmethod=entire is used. However, this combination will rarely beused since the text will most probably be distorted (see Figure 7.5g).Fitting text into a box with clipping. In another rare case you might want to fit thetext in its original size and clip the text if it exceeds the box. In this case, fitmethod=clip7.1 Placing and Fitting Single-Line Text 135

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

Saved successfully!

Ooh no, something went wrong!