Home > ZWCAD > Notes and Labels >
Multiline Text

May 20, 2011

      Multiline text consists of one or more lines of text or paragraphs that fit within a boundary width that you specify. Each multiline text entity you create is treated as a single entity regardless of the number of individual paragraphs or lines of text it contains.

     When you create multiline text, you first determine the paragraph's boundary width by specifying the opposite corners of a rectangle. The multiline text automatically wraps so that it fits within this rectangle. The first corner of the rectangle determines the default attachment point of the multiline text. You can change the location of the attachment point in reference to the rectangle, and you can determine the direction in which text flows within the rectangle.

      After defining the text frame, the system opens the "multiline text editor" which is comprised of a text frame and the Text Formating toolbar. You can type text in the text frame and change the style from the Text Formating toolbar.

     The text style can control the style of characters, such as default fronts, line spacing, aligned way and color. STANDARD is the default text style.

     You can change the value of text objects in the Properties panel that includes the Justify, Direction and so on.

      You can also assign the underline, color or other fonts to the current text to overlap the default style. Stacked characters (such as fractions and tolerance), special characters and Unicode characters used for TrueType fonts can be create in the text frame. At the same time, you can also control the appearance of text object and create a list by specifying the tap and characters to retract.


To create multiline text

  1.   Choose Draw> Text > Multiline Line Text.

  2.   Select the first corner of the text area.

  3.   Select the second corner of the text area.

  4.   In the Multiline Text window, type the text you want.

  5.   To create paragraphs, press Enter and continue typing.

  6.   On the toolbar, make format changes as follows:

  • To change the font of the selected text, select a font from the list.

  • To change the height of the selected text, enter a new value in the Height box.

  • To format text in a TrueType font with boldface or italics, or to create underlined text for any font, click the corresponding button on the toolbar. SHX fonts do not support boldface or italics.

  • To apply color to selected text, choose a color from the Color list. Click Other colors to display the Select Color dialog box.

  1.   To save your changes and exit the Multiline Text Editor, use one of the following methods:

  • Click OK on the toolbar.

  • Press Ctrl + Enter.

Text toolbar\

Command line MTEXT

TIP You can paste text from the Clipboard into the Multiline Text Editor.


Justify Multiline Text

       When you create multiline text, you can set the text alignment by specifying the attachment point location in relation to the multiline text boundary and the direction in which text flows within the boundary. You can set the multiline text alignment either in the command line prompt displayed after you specify the first corner of the multiline text boundary or from the Multiline Text Editor. You can specify the attachment point at the top left, top center, top right, middle left, middle center, middle right, bottom left, bottom center, or bottom right. The multiline text can flow left to right, right to left, top to bottom, or bottom to top.


The system provides nine justifications, shown as the following illustrations:

\


Format Characters Within Multiline Text

      During creating multiline text, you can assign a new value to the selected objects to overlap the default setting. But the changes only affect the selected texts, leaving the current text style unchanged.

      In addition to specifying an underlines, bold, color and fonts for a single or multiple characters, you can also specify a different text height. The text height displayed in the Multiline Text Editor is the one you specified, the height of the actual characters is displayed with the new height as well. The text high is measure in drawing unit.


Indent Multiline Text and Use Tabs

     On the multiline text editor, you can control the appearance of text objects and create a list by specifying the tap stops and indenting text. The setting of tap stops and indent made before typing text are applied to all the texts. You can also assign the settings to the selected paragraphs.

     The arrowheads on the ruler are used to define the indent of text. The above one is designed to specify the first line indent, while the other one is designed to specify the paragraph indent.

     While you dragging the indent mark on the ruler, the L mark is displayed to represent the tab stops. You can delete custom tabs by moving the L mark away from the ruler.


Specify the Line Spacing

     The line spacing of multiline texts is the distance between the baseline of one line of text and the baseline of the next line of text. You can right-click mouse and choose Width and Line Space to specify the desired line space when the cursor stays on the text frame. The single line space is the 1.66 times the height of the text characters.

     You can specify either At Least or Precious option to specify the line spacing. At Least increases line spacing automatically when the characters are too large to fit the line spacing you had specified. Precise specifies the exact line spacing for each line.

     Precise style may result the text in lines situated above or below lines with large font characters to overlap the larger characters.


Create Stacked Characters

      Stacked text is text or fraction applied to mark tolerance or measure units. Before creating stacked text, you have to use special characters to indicate the stacked place for the selected text. The following contents present the special characters and illustrate how to create stacked text:

  • Slash (/) : Stacks text vertically and separates them with a horizontal line.

  • Pound sign (#) : Stacks text diagonally and separates them with a diagonal line.

  • Carat (^): Creates a tolerance stack, which is stacked vertically as well as not separated by a line.

\


You can also use Stack button on the Text Formating toolbar to create stacked text.


Import Text from External Files

     You can input text (txt) contents into the drawing from an external file by selecting Input from file option from the right click menu of the Mtext Editor, display the text in the drawing that imported from external file as mtext object.

     Importing text from external files provides users with infinite flexibility while manipulating, you can operate from creating text file for standard annotations firstly, and then insert these text into the drawing as mtext objects for subsequent editing and resetting its formats.

      Text imported from external files (TXT and other) uses current text style. Additionally, the external files imported into the Mtext Editor retain its source document style for text height, retain the original setting for line break and enter symbol.


To Import Text file

  1. Select "Draw">"Text">"Multiline Text"

  2. Specify two corners of multiline text frame separately which define the width of mtext object.

  3. Right click on mtext editor, select "Input From File".

  4. Select the desired text file from the Open dialog box, and then click Open. The text contents of the text file will be inserted into the position where the cursor stays within the mtext editor.

  5. Modify text content to be inserted on your demand.

  6. Click OK on the mtext editor to save the modification and exit the editor.

Text Toolbar:  \

Command lien: MTEXT


      If you drag an external file into the drawing directly, it will be displayed as OLE object. Additionally, if you use clipboard to copy text from other applications and paste it into current drawing directly, the text will be displayed as OLE objects.


Commands Reference

MTEXT: Creates multiline text

QTEXT: Controls the display and plotting of text and attribute objects

PROPERTIES: Controls properties of existing objects

DDEDIT: Edits text, dimension text, attribute definitions, and feature control frames

STYLE: Creates, modifies, or sets named text styles

System Variables Reference

MTEXTED: Controls the appearance of the Multiline Text Editor

QTEXTMODE: Controls how text is displayed

TEXTFILL: Controls the filling of TrueType fonts while plotting and rendering

TEXTQLTY: Sets the resolution tessellation fineness of text outlines for TrueType fonts while plotting and rendering

TEXTSIZE: Sets the default height for new text objects drawn with the current text style

TEXTSTYLE: Sets the name of the current text style

TSPACEFAC: Controls the multiline text line spacing distance measured as a factor of text height

TSPACETYPE: Controls the type of line spacing used in multiline text

TSTACKALIGN: Controls the vertical alignment of stacked text

TSTACKSIZE: Controls the percentage of stacked text fraction height relative to selected text's current height


 

PrintPrint Get a PDF version of this webpage PDF
2013 ZWCAD Software Co., Ltd. All rights reserved. | About ZWSOFT | Privacy Policy | Terms and Conditions | Contact us | Site Map