Formatting codes for multiline text Home

When you define a text string for a Multiline Text object, you can apply formatting by entering format codes. You can underline text, add a line over text, and create stacked text. You can also change color, font, and text height. You can change the spaces between text characters or increase the width of the characters themselves. To apply formatting, use the format codes shown in the following table.

Format code Purpose Enter this... To produce this...
\O Turns overline on and off Autodesk \OAutoCAD\o 2000
\L Turns underline on and off Autodesk \LAutoCAD\l 2000
\~ Inserts a nonbreaking space Autodesk AutoCAD\~2000
\\ Inserts a backslash Autodesk \\AutoCAD
\{ ... \} Inserts an opening and closing brace Autodesk \{AutoCAD\} 2000
\Cvalue; Changes to the specified color Autodesk \C2;AutoCAD 2000
\File name; Changes to the specified font file Autodesk \Ftimes; AutoCAD 2000
\Hvalue; Changes to the text height specified in drawing units Autodesk \H2;AutoCAD
\Hvaluex; Changes the text height to a multiple of the current text height Autodesk AutoCAD \H3x;2000
\S...^...; Stacks the subsequent text at the \, #, or ^ symbol 1\S1/2;
\Tvalue; Adjusts the space between characters, from .75 to 4 times \T2;Autodesk
\Qangle; Changes obliquing angle \Q20;Autodesk
\Wvalue; Changes width factor to produce wide text \W2;Autodesk
\P; Ends paragraph Autodesk\PAutoCAD 2000

Braces can be nested up to eight levels deep.

You can also use control codes to add special characters, such as tolerance or dimensioning symbols.

Control code Result
%%d Degree symbol (°)
%%p Tolerance symbol (±)
%%c Diameter symbol (Ø)

You can enter any character by its Unicode value, with the control code \U+xxxx, where xxxx is the hexadecimal value of the Unicode character. For example:

Control code Result
\U+00B0 Degree symbol (°)
\U+00B1 Tolerance symbol (±)
\U+2205 Diameter symbol (Ø)
\U+20AC Euro symbol (€)
\U+00A9 Copyright symbol (©)

The characted must exist in a font file, otherwise LiteCAD will draw an empty rectangle instead of this character.