Node: Font File, Next: , Previous: Element File, Up: File Formats



Font File Format

A number of user defined symbols are called a font. There is only one per layout. All symbols are made of lines. See the file default_font as an example.

The lowest x and y coordinates of all lines of a font are transformed to (0,0).

     File            = Font
     Font            = {FontData}...
     FontData        = {Symbol}...
     Symbol          = "Symbol(" SymbolID FontPosition ")"
     		      "(" {SymbolData}... ")"
     SymbolData      = {SymbolLine}...
     

Symbol
The two arguments are the ASCII code of the symbol and its distance to the next symbol. Undefined symbols are drawn as filled rectangles. The ASCII code may be passed as a character constant or as a hexadecimal value.
SymbolLine
The symbol data itself is made up of several entries of type SymbolLine.