2012
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
. . .
lowercase Alpha definition, invoked by "|a"
*31842,n,lcb
. . .
lowercase Beta definition, invoked by "|b"
*31868,n,vbar
. . .
vertical bar definition, invoked by "||"
. . .
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
the code 7 is interpreted as a two-byte value. This affects the total number of
data bytes ( defbytes ) in the shape description header. For example, the
following shape description is found in the romans.shp file:
176 | Chapter 8 Shapes and Shape Fonts