Search


Ploticus > Scripts >
textdetails


Virtually every ploticus attribute that produces text has an accompanying textdetails specification for controlling appearance details such as point size, color, etc. Text capabilities vary depending on what output format you're producing. See fonts for more information.




Examples

Prefab example: titledet="size=12 adjust=0,0.2"
Script example: titledetails: size=12 adjust=0,0.2

Note that settings are separated from each other by space, but settings themselves contain no embedded whitespace. Also, the entire specification must be on one line.




Settings

size=p

    Point size of the text. 10 point is standard. A point is 1/72th of an inch.

style=s

    Style font variant. s may be either B for bold, I for italic, BI for bold-italic, or R for regular. Has an effect only in certain graphics environments and cannot be combined with the font= setting.

font=fontname

    Use the font fontname. Has an effect only in certain graphics environments and cannot be combined with the style= subattribute. See fonts for more info. If the font name you are specifying contains embedded whitespace, each whitespace character must be encoded here using an exclamation point (!).

align=a

    Alignment or justification. a may be either left, center, and right (use the whole word or just the first letter, upper or lower case). In versions 2.40+ the following are supported to get text that tracks downward or upward at a slant: downdiagonal and updiagonal and these work for any output type.

linesep=f

    Allows control over line spacing when multi-line text is rendered. Default is 1.0. An f > 1.0 makes lines further apart; f < 1.0 makes lines closer together. New in version 2.32.

adjust=x,y

color= color

slantparm=h

    If using align=downdiagonal or align=updiagonal to do X axis stubs, this parameter can be used to control the amount of slant. It is the amount to move vertically for every character, expressed as a proportion of text height. Default is 0.3; a value of 0.2 gives a shallower slant, a value of 0.4 gives a steeper slant.




Illustration

text


 


Ploticus 2.42 ... May 2013 Terms of use /