7.6.1 Adobe Soft-Font Format

Adobe soft fonts (files with an .AGB extension) are recognized by the following string:

%!PS-AdobeFont

The string must be located at offset 6 in the file. The first 6 bytes are defined by the following data structure:

typedef struct{

unsigned char flag;

char type; /* 1 means data is ASCII, 2 means binary */

/* (convert to ascii) */

long length; /* length of the data that follows */

} HDR;

The members indicate the length of the soft font as well as the type (ASCII or binary). Binary forms are converted to hexadecimal ASCII by the driver; ASCII fonts are copied directly.