2011
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
Quick Reference
Commands
COMPILE
Compiles shape files and PostScript font files into SHX files.
LOAD
Makes shapes available for use by the SHAPE command.
SHAPE
Inserts a shape from a shape file that has been loaded using LOAD.
Unicode Font Descriptions
A single Unicode font, due to its large character set, is capable of supporting
all languages and platforms. Unicode shape definition files are virtually
identical in format and syntax to regular AutoCAD for Mac shape definition
files.
The main difference is in the syntax of the font header as shown in the
following code:
*UNIFONT,6,font-name
above,below,modes,encoding,type,0
The font-name, above, below, and modes parameters are the same as in regular
fonts. The remaining two parameters are defined as follows:
encoding Font encoding. Uses one of the following integer values.
0 Unicode
1 Packed multibyte 1
2 Shape file
type Font embedding information. Specifies whether the font is licensed.
Licensed fonts must not be modified or exchanged. Bitcoded values can be
added.
0 Font can be embedded
1 Font cannot be embedded
2 Embedding is read-only
Another important difference is the handling of the code 7 subshape reference.
If a shape description includes a code 7 subshape reference, the data following
180 | Chapter 8 Shapes and Shape Fonts