MEDLEYFONTFORMAT.READ.FONT takes an optional directory argument
Defaults to [device]FONTDIRECTORIES
This commit is contained in:
@@ -22,13 +22,15 @@ If FILE is not provided, the name of the file will be constructed from the prope
|
||||
Thus, the file name produced by (MEDLEYFONT.WRITE.FONT '(CLASSIC 8)) will be [MEDLEYDIR]> fonts>medleydisplayfonts>CLASSIC08-MRR.MEDLEYDISPLAYFONT.
|
||||
OTHERFONTPROPS can be specified as a note or other information to be written on the file for later retrieval.
|
||||
The coercion process in the constuction of Medley font descriptors records the fact that some character sets are exactly identical to the same character sets in other fonts. Thus there may be only one true source for all of the Japanese Kanji character sets, but other fonts may appear to have those characters by virtue of an indirect pointer. The Medley fontfile for a font with such an indirect will store that indirect relationship as the FONTSPEC of the source font, with the benefit of a substantial reduction in file size. The downside is that the source font must be accessible at when such a character set is read in. If NOINDIRECTS is true, that dependency is avoided by copying into the file the full specification of an indirect character set.
|
||||
(MEDLEYFONT.READ.FONT FILE CHARSETS NOERROR) [Function]
|
||||
(MEDLEYFONT.READ.FONT FILE CHARSETS NOERROR DIRECTORY) [Function]
|
||||
The information for CHARSETS character sets will be read from FILE into a new in-core FONTDESCRIPTOR. If CHARSETS is ALL, information for all character sets on FILE will be installed. If NIL, then only the font fields will be filled in, with no character sets (not even 0) instantiated.
|
||||
Character sets that are not designated by CHARSETS will be represented by NIL in the resulting font, indicating that they have not yet been instantiated. The information for indirect character sets will be retrieved from a font-file in the same directory as FILE.
|
||||
If FONT is provided as a FONTSPEC, the standard filename corresponding to that specification will be read.
|
||||
If NOERROR, MEDLEYFONT.READ.FONT returns NIL if a font cannot be read from the indicated file.
|
||||
DIRECTORY is passed as the DIRECTORY argument of MEDLEYFONT.FILENAME.
|
||||
(MEDLEYFONT.FILENAME FILE DIRECTORY EXTENSION) [Function]
|
||||
Returns a fully specified Medley font file name for FILE, a string, litatom, or FONTSPEC. If FILE is a FONTSPEC it is first translated to a standard name for that specification, with values for the directory and extension taken from DIRECTORY and/or EXTENSION, if provided, or from the FONTDEVICEPROP properties of its device. DIRECTORY and EXTENSION also provide default s if FILE is a string or atom.
|
||||
Returns a fully specified Medley font file name for FILE, a string, litatom, or FONTSPEC. If FILE is a FONTSPEC it is first translated to a standard name for that specification, with values for the directory and extension taken from DIRECTORY and/or EXTENSION, if provided, or from the FONTDEVICEPROP properties of its device. DIRECTORY and EXTENSION also provide default s if FILE is a string or atom.
|
||||
DIRECTORY defaults to the first of FONTDIRECTORIES for the font device. If DIRECTORY is T, the currently connected directory is used.
|
||||
Integration with current FONT interface
|
||||
(MEDLEYFONT.FILEP FILE) [Function]
|
||||
Returns NIL if FILE is not a medley-font file or a stream open on a medley-font file, otherwise returns a list (fullname date version otherfontprops), where fullfilename is the fullname of the file, date is the date that the file was written, version is the version-number of the medleyfont format (currently 0), and otherfontprops is the value of OTHERFONTPROPS, if any were specified when the file was created. If FILE is a stream open at the beginning of a medley-font file, the stream is left open and positioned just after its header information.
|
||||
@@ -68,8 +70,8 @@ Reads and advances over the item written at the current file position of STREAM.
|
||||
| ||||