7 lines
3.3 KiB
Plaintext
7 lines
3.3 KiB
Plaintext
en·vÅos READDISPLAYFONT
|
||
2
|
||
|
||
4
|
||
|
||
1
|
||
|
||
READDISPLAYFONT
|
||
1
|
||
|
||
4
|
||
|
||
By: Christopher Lane (Lane@Sumex-Aim.Stanford.Edu)
|
||
READISPLAYFONT modifies the display font functions to make it possible to define new display font types.
|
||
The functions \READDISPLAYFONTFILE and FONTFILEFORMAT are modified to use the list:
|
||
DISPLAYFONTTYPES [Variable]
|
||
An ALST containing font file extensions and the functions that can read those types from a file. Its initial value is:
|
||
((AC \READACFONTFILE)
|
||
(STRIKE \READSTRIKEFONTFILE))
|
||
The functions take (STREAM FAMILY SIZE FACE) as arguments and return a CHARSETINFO datum. You will (probably) need the Xerox (internal) documentation about fonts and character sets (not supplied with the standard documentation) to define a new font file reading function.
|
||
The AC and STRIKE font types are handled specially to be compatible with the existing font code, so files with extension DISPLAYFONT still work and FONTFILEFORMAT moves the file pointer to the appropriately for those two types. For all other (new) types, the type is determined solely from the file extension and FONTFILEFORMAT has no side effects.
|
||
When defining a new display font types, you will need to add the new extension to the system list DISPLAYFONTEXTENSIONS. |