<< Click to Display Table of Contents > 

SAMLight Manual > How to > Use Simple Fonts > Generate Fonts > Scaps Font Format

Scaps Font Format
Previous pageReturn to chapter overviewNext page

The SCAPS Font Format is an  ASCII font description file format easy to read and to generate. For an example look at the file sc_straight_prop.sff in the folder INSTALLDIR/fonts which is the font used in the example below. Version 2.0 works with a EM of 8000 units in contrast to version 1.0 which works with an EM of 800 units.

Character description:

// CHAR 39

SI1280,640;SP1;PU;PA4000,7040;PD;PA4000,5360;PU;

Each character begins with // CHAR #, where # is the ANSI code of the character. The command SI specifies the AW and LSB values as described above. The command SP is optional and will be ignored. In the following line up to the next character description there is the geometrical information of the lines. The point information is stored in HPGL format by using the commands PU, PD and PA.

Header:        The header is necessary for the font converter.        

// SCAPS FONT FILE

// VERSION 2.0

Baseline: Y Distance from (0,0)

// BASELINE 2000

 

Examples:

// CHAR 0

SI8000,0;SP1;PU;PA0,0;PD;PA8000,0,8000,8000,0,8000,0,0;PU;

// CHAR 33

SI1760,640;SP1;PU;PA4000,7040;PD;PA4000,3680;PU;SP1;PU;PA4000,2480;
PD;PA3760,2240,4000,2000,4240,2240,4000,2480;PU;

// CHAR 34

SI1760,640;SP1;PU;PA4240,7040;PD;PA4000,6800,3760,6320,3760,5840,
4000,5600,4240,5840,4000,6080;PU;

// CHAR 35

SI4880,640;SP1;PU;PA4120,8000;PD;PA2440,320;PU;PA5560,8000;PD;PA3880,
320;PU;PA2440,4880;PD;PA5800,4880;PU;PA2200,3440;PD;PA5560,3440;PU;

// CHAR 36

SI4640,640;SP1;PU;PA3520,8000;PD;PA3520,1040;PU;PA4480,8000;PD;
PA4480,1040;PU;SP1;PU;PA5680,6320;PD;PA5200,6800,4480,7040,3520,
7040,2800,6800,2320,6320,2320,5840,2560,5360,2800,5120,3280,4880,
4720,4400,5200,4160,5440,3920,5680,3440,5680,2720,5200,2240,4480,
2000,3520,2000,2800,2240,2320,2720;PU;

// CHAR 37

SI5600,640;SP1;PU;PA6160,7040;PD;PA1840,2000;PU;SP1;PU;PA3040,7040;
PD;PA3520,6560,3520,6080,3280,5600,2800,5360,2320,5360,1840,5840,
1840,6320,2080,6800,2560,7040,3040,7040,3520,6800,4240,6560,4960,
6560,5680,6800,6160,7040;PU;SP1;PU;PA5200,3680;PD;

// CHAR 38

SI6080,640;SP1;PU;PA6400,4880;PD;PA6400,5120,6160,5360,5920,5360,
5680,5120,5440,4640,4960,3440,4480,2720,4000,2240,3520,2000,2560,
2000,2080,2240,1840,2480,1600,2960,1600,3440,1840,3920,2080,4160,
3760,5120,4000,5360,4240,5840,4240,6320,4000,6800,3520,7040,3040,
6800,2800,6320,2800,5840,3040,5120,3520,4400,4720,2720,5200,2240,
5680,2000,6160,2000,6400,2240,6400,2480;PU;

// CHAR 39

SI1280,640;SP1;PU;PA4000,7040;PD;PA4000,5360;PU;