2013
Table Of Contents
- Contents
- Basic Customization
- Custom Linetypes
- Custom Hatch Patterns
- User Interface Customization
- DIESEL
- Command Scripts
- Introduction to Programming Interfaces
- Shapes and Shape Fonts
- Overview of Shape Files
- Create Shape Definition Files
- Shape Descriptions
- Vector Length and Direction Code
- Special Codes
- Use Special Codes
- Codes 0, 1, and 2: End of Shape and Draw Mode Control
- Codes 3 and 4: Size Control
- Codes 5 and 6: Location Save/Restore
- Code 7: Subshape
- Codes 8 and 9: X-Y Displacements
- Code 00A: Octant Arc
- Code 00B: Fractional Arc
- Codes 00C and 00D: Bulge-Specified Arcs
- Code 00E: Flag Vertical Text Command
- Text Font Descriptions
- Sample Files
- Big Font Descriptions
- Unicode Font Descriptions
- Superscripts and Subscripts in SHX Files
- Index
modes The modes byte should be 0 for a horizontally oriented font and 2 for
a dual-orientation (horizontal or vertical) font. The special 00E (14) command
code is honored only when modes is set to 2.
shape-number Character code.
defbytes Byte size. It is always 2 bytes, consisting of a hexadecimal or a
combination of decimal and hexadecimal codes.
shape-name Character name.
code Shape description special code. It is always 7 so that it can use the
subshape feature.
primitive# Reference to the subshape number. It is always 2 bytes.
basepoint-x X origin of the primitive.
basepoint-y Y origin of the primitive.
width Scale of the width of the primitive.
height Scale of the height of the primitive.
terminator End-of-file indicator for the shape definition. It is always 0.
To arrive at the scale factor, AutoCAD scales down the primitive to a square
unit and then multiplies it by the height and width to get the shape of the
character. Character codes (shape numbers) in the Big Font shape definition
file can have values up to 65535. The following table describes the fields of
the extended Big Font file.
Fields of the extended Big Font file
DescriptionByte sizeValueVariable
Character code2 bytesxxxx
shape-number
Extended font definition2 bytes7,0
code
Refer to subshape number2 bytesxxxx
primitive#
Primitive X origin1 byte
basepoint-x
Primitive Y origin1 byte
basepoint-y
Create Shape Definition Files | 173