File: Font-File.html

package info (click to toggle)
pcb 1.99j%2B20050127-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,632 kB
  • ctags: 4,302
  • sloc: ansic: 45,369; pascal: 3,526; sh: 1,140; yacc: 1,076; makefile: 575; lex: 348; perl: 183; awk: 102; tcl: 63
file content (60 lines) | stat: -rw-r--r-- 2,005 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<html lang="en">
<head>
<title>Pcb</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Pcb">
<meta name="generator" content="makeinfo 4.6">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
--></style>
</head>
<body>
<div class="node">
<p>
Node:&nbsp;<a name="Font%20File">Font File</a>,
Next:&nbsp;<a rel="next" accesskey="n" href="Netlist-File.html#Netlist%20File">Netlist File</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Element-File.html#Element%20File">Element File</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="File-Formats.html#File%20Formats">File Formats</a>
<hr><br>
</div>

<h3 class="section">Font File Format</h3>

<p>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 <code>default_font</code>
as an example.

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

<pre class="example">     File            = Font
     Font            = {FontData}...
     FontData        = {Symbol}...
     Symbol          = "Symbol(" SymbolID FontPosition ")"
     		      "(" {SymbolData}... ")"
     SymbolData      = {SymbolLine}...
     </pre>

     <dl>

     <br><dt><code>Symbol</code>
     <dd>The two arguments are the <code>ASCII</code> code of the symbol and its distance to
the next symbol. Undefined symbols are drawn as filled rectangles. 
The <code>ASCII</code> code may be passed as a character constant or as a hexadecimal
value.

          <dl>
<dt><code>SymbolLine</code>
          <dd>The symbol data itself is made up of several entries
of type <em>SymbolLine</em>. 
</dl>

   </dl>

   </body></html>