60 lines
9.9 KiB
Plaintext
60 lines
9.9 KiB
Plaintext
Medley IMPORTFONTS
|
||
2
|
||
|
||
4
|
||
|
||
1
|
||
|
||
IMPORTFONTS
|
||
1
|
||
|
||
4
|
||
|
||
By Ron Kaplan
|
||
This document was last edited in May 2026.
|
||
|
||
This package contains functions aimed at systematizing the process of converting font data (bitmaps and metrics) from external and/or legacy sources into Medley font-format files and then working through a sequence of phases to translate external character encodings into MCCS, approximate information for missing characters, and to make the resulting files available to FONTCREATE by deploying them to the appropriate [device]FONTDIRECTORIES. The named phases are:
|
||
IMPORT: Read external data into fontdescriptors, one for each family/size/face/rotation, and write them to Medley font files.
|
||
MCCS: Read imported files into fontdescriptors, move information about individual characters to their most apprpriate MCCS positions, and write the MCCS-recoded information to new Medley font files.
|
||
COMPLETE: Read MCCS files into font descriptors, fill in information about missing characters by copying from other fonts according to the heuristic [device]CHARCOERCION for a given font, and write the completed fonts to other new Medley font files.
|
||
FAKE: Presumably only for DISPLAY fonts, read complete files into font descriptors, apply bitmap transformations to simulate otherwise missing Italic, Bold, and Italic-Bold faces from the glyphs of other available faces, and write the faked-face fonts to other new Medley font files.
|
||
DEPLOY: Copy the best resulting files to a device-dependent deployment directory, (CAR (FONTDEVICEPROP (FONTPROP font 'DEVICE) 'FONTDIRECTORIES)). For DISPLAY fonts the faked-face files are most likely the best, the completed or MCCS files may be best for other devices.
|
||
The files for each phase for each device are stored in a defined subdirectory, currently under {MEDLEY}/internal/fonts/. The subdirectories for the display device are thusÿÿ |