Line places text along an existing LineString item, creating a LineText item. The geometry of the LineText item can be of any type, e.g. straight lines, arcs, circles, beziers etc.
Select the LineString item, then select the command. You may then type in the required text in the dialog box, clicking OK when you have finished. The text is then placed along the straight or curved LineString item.
Line Text items can use secondary annotation in the same way as Text items.
To edit Line Text select the text and use the local Properties command, Text tab. See Editing Text for details of editing.
Font
Select font to apply to the text from the drop-down box.
Height (pts)
Select the text height in points.
Text height is set in point sizes, the same as text in word-processing. There are 72 points to the inch. One point is approximately 0.01389 inches, or 0.353 millimetres.
Markup
The Markup option allows a single text item to have multiple states, e.g. Bold, Italic, etc., and/or multiple colours; and/or multiple fonts.
These states are:
*bold* Therefore *This is bold text* will display: This is bold text _italic_ Therefore _This is italic_ will display: This is italic ^superscript^ Therefore *Area = 25^2^* will display: Area = 252 (bold and superscript) ~subscript~ Therefore ~This is subscript~ will display: This is subscript -strikeout- Therefore -This is strikeout- will display: strikeout
Multiple text colours in a text item:
The code to set text colour is:
%{fill:#RGB values} text to be coloured%
The following line:
This is%{fill:#00AA00} green% and this is%{fill:#0000FF} blue% text
will display as:
This is green and this is blue text
Multiple fonts in a text item:
The code to set a font is:
%{font-family:FontName}
The following line:
This font is %{font-family:Castellar} Castellar% whereas this font is *_%{font-family:Times}Times in bold italic%_*.
will display as:
This font is Castellar whereas this font is Times in bold italic.
Defining Outline text:
The code to set Outline text is:
%{fill:Fill Brush colour; outline:Outline Pen colour}required text%
The following line:
%{fill:#FF0000; outline:#0000FF}red fill blue outline%
will display as:
Escape characters
Characters can be "escaped" (i.e. have their markup meaning ignored) by prefixing with a \
The following line:
*This text is bold* but \*this text isn't (it has an asterisk before and after it instead)\*
would display as:
This text is bold but *this text isn't (it has an asterisk before and after it instead)*
Justification: Left, Centre or Right
Set the text justification as required.
Vertical alignment:Top, Middle, Baseline or Bottom
Set the text vertical alignment as required.
Bold, Italic, Underline, Strikethrough
Any combination of Bold, Italic, Underlined and Strikethrough can be selected.
Opaque, Box, Outline, Rounded rectangle
Any combination of Opaque, Box, Outline (if creating Outline Text) and Rounded rectangle can be selected.
Fill Brush
Select the required brush to set the text colour. Brush colour, fill, pattern, transparency and the normal advanced settings are available.
Implicit brushes may also be defined. The facility of copying and pasting the brush specification in JSON or XML is also available.
Outline Pen
Not available for simple text. This field will become active if the Outline text A button is selected:
Preview pane
Type in the required text, use the syntax as described in Markup if required, press Enter for a new line. You can also paste text into this box using the Ctrl+C/Ctrl+V key combination, or Paste on the local menu.
Line text characters can be rendered upright individually by setting the _text_upright& flag to True. This allows you to rotate the text, but to keep the characters horizontal, giving a step effect. The _text_upright& flag defaults to False (the setting to be used in the vast majority of cases). This property can be accessed from the Properties... dialog All tab, accessed from the text item's local menu.
Examples showing the effect of Upright False and True settings:
Top of page
Click to return to www.cadcorp.com
© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).