TextStyle for MoxyDraw

Creates, erases, modifies, renames or sets text styles (style in AutoCAD).


Syntax to create a text style:

TextStyle
new
textstyle name
font name
text height
bold italic
effect
width factor
obliquing angle

new:

Creates a new text style and SETS it current.

textstyle name:

Sets the text style name to create.

font name:

Sets the font name.

There are 2 types of font used by AutoCAD:

The first one is TrueType (with the little TT in front of the name) which is also used by Windows.

The other is shape font (the one with extension .shx after the name).

When calling a TrueType font (like arial, tahoma, time new roman) any extension must be omitted. In the other hand, when calling a shape font, you need to add the extension ".shx" like for romans.shx, iso.shx and txt.shx for example.

Generally, if a TrueType is called, you can set it to bold or italic or both but the vertical option will not be available. If you call a shape file you won't be able to put it in bold or italic but you'll have the option to use it vertically.

text height:

Optional. Sets the text height. If omitted, it will be set to 0. It's a good practice to let it at 0.

bold italic:

Optional. Sets if text is bold and/or italic IF chosen font permits. If omitted, it will be set to 0. Here are the available options:

0 = None

1 = Bold

2 = Italic

3 = Bold AND Italic

effect:

Optional. Sets effect option IF chosen font permits. If omitted, it will be set to 0. Here are the available options:

0 = None

1 = Backward (vertical symmetry)

2 = Upside-down (horizontal symmetry)

3 = Backward AND Upside-down

4 = Vertical

5 = Vertical AND Backward

6 = Vertical AND Upside-down

7 = Vertical AND Backward AND Upside-down

width factor:

Optional. Sets the width factor. If omitted, it will be set to 1.

obliquing angle:

Optional. Sets the obliquing angle in degrees for slanting or putting text italic with a specified degree. If omitted, it will be set to 0.

Note:

If the textstyle already exists, it will be set current without being modified.





Syntax to erase a text style:

TextStyle
erase
textstyle name

erase:

Sets the erase operation.

textstyle name:

Sets the text style to erase.





Syntax to modify a text style:

TextStyle
new
textstyle name
font name
text height
bold italic
effect
width factor
obliquing angle

new:

Modifies an existing text style.

textstyle name:

Sets the text style name to create.

font name:

Sets the font name.

There are 2 types of font used by AutoCAD:

The first one is TrueType (with the little TT in front of the name) which is also used by Windows.

The other is shape font (the one with extension .shx after the name).

When calling a TrueType font (like arial, tahoma, time new roman) any extension must be omitted. In the other hand, when calling a shape font, you need to add the extension ".shx" like for romans.shx, iso.shx and txt.shx for example.

Generally, if a TrueType is called, you can set it to bold or italic or both but the vertical option will not be available. If you call a shape file you won't be able to put it in bold or italic but you'll have the option to use it vertically.

text height:

Optional. Sets the text height. If omitted, it will be set to 0. It's a good practice to let it at 0.

bold italic:

Optional. Sets if text is bold and/or italic IF chosen font permits. If omitted, it will be set to 0. Here are the available options:

0 = None

1 = Bold

2 = Italic

3 = Bold AND Italic

effect:

Optional. Sets effect option IF chosen font permits. If omitted, it will be set to 0. Here are the available options:

0 = None

1 = Backward (vertical symmetry)

2 = Upside-down (horizontal symmetry)

3 = Backward AND Upside-down

4 = Vertical

5 = Vertical AND Backward

6 = Vertical AND Upside-down

7 = Vertical AND Backward AND Upside-down

width factor:

Optional. Sets the width factor. If omitted, it will be set to 1.

obliquing angle:

Optional. Sets the obliquing angle in degrees for slanting or putting text italic with a specified degree. If omitted, it will be set to 0.





Syntax to rename a text style:

TextStyle
rename
textstyle name
textstyle new name

rename:

Sets the rename operation.

textstyle name:

Sets the text style to rename.

textstyle new name:

Sets the text style new name.





Syntax to set a text style:

TextStyle
set
textstyle name

set:

Sets the set operation.

textstyle name:

Sets the text style to be current.