Use a Big Font to Extend a Font (Concept)

AutoCAD

 
Use a Big Font to Extend a Font
Concept Quick Reference
 
 
 

To include special symbols in text strings, you can use a Big Font instead of extending a standard text font.

In some drafting disciplines, many special symbols can appear in text strings. The AutoCAD standard text fonts can be extended to include special symbols. However, extending standard text fonts has several limitations:

  • The number of shapes is 255 per font file.
  • Standard character set uses almost half the available shape numbers. Only codes 1 through 9, 11 through 31, and 130 through 255 are available.
  • Multiple text fonts require duplication of the symbol definitions in each font.
  • Special symbols require that you enter %%nnn, where nnn is the symbol's shape number.

The Big Font mechanism avoids these problems. You can select one or more seldom-used characters, such as the tilde (˜) or the vertical bar (|), as an escape code, and use the next character to select the appropriate special symbol. For instance, you can use the following Big Font file to draw Greek letters by entering a vertical bar (|, ASCII code 124) followed by the equivalent Roman letter. Because the first byte of each character is 124, the character codes are biased by 124 x 256, or 31744.

*BIGFONT 60,1,124,124
*0,4,Greek
above, below, modes, 0
*31809,n,uca
. . .   uppercase
Alpha definition, invoked by "|A"
*31810,n,ucb
. . .   uppercase
Beta definition, invoked by "|B"
*31841,n,lca
. . .   lowercase
Alpha definition, invoked by "|a"
*31842,n,lcb
. . .   lowercase
Beta definition, invoked by "|b"
*31868,n,vbar
. . .   vertical
bar definition, invoked by "||"
. . .