This is a library to find system font files. It works on systems with DirectWrite (Windows), CoreText (macOS, iOS), and FontConfig (Linux, BSD). It does not have any foreign dependencies that aren't already directly available on the system.
You can list all fonts by using
list-fonts, or find a specific font using
find-font. Both of these functions take a number of arguments to query for fonts with specific properties (
stretch). Both of them return
font instances, from which you can query the precise properties, as well as their font file location with
- No documentation provided.
Uninitializes the library. This will shut down foreign libraries and deallocate cache memory. Returns T if it did so. It will not close the foreign libraries that were opened by INIT. It is safe to call this function multiple times. See INIT
Attempts to find a font with specifications that match the query as close as possible. Returns a FONT instance, or NIL if no match can be found. Note that on some systems the returned font may not be an exact match, but rather a closest approximation. For the possible values of the arguments, see the FONT class and its reader functions. Doing this will automatically call INIT. See LIST-FONTS See INIT See FONT
Refreshes the font cache. This should cause new system fonts to be recognised. You should call this function whenever you think the list of system fonts might have changed. Returns T if the cache was updated. Doing this will automatically call INIT. See INIT
Returns the font family name. See FONT
Returns the pathname to the font file. This may be a TTF or OTF file. See FONT
Returns the slant of the font. This may be one of the following keywords, in order of increasing slant, or a system-dependent numeric value for the font's slant. :ROMAN :ITALIC :OBLIQUE See FONT
Returns the font's spacing. This may be one of the following keywords, in order of increasing spacing, or a system-dependent numeric value for the font's spacing. :PROPORTIONAL :DUALSPACE :MONOSPACE :CHARCELL See FONT
Returns the font's stretch factor. This may be one of the following keywords, in order of increasing stretch factor, or a system-dependent numeric value for the font's stretch factor. :ULTRA-CONDENSED :EXTRA-CONDENSED :CONDENSED :SEMI-CONDENSED :NORMAL :SEMI-EXPANDED :EXPANDED :EXTRA-EXPANDED :ULTRA-EXPANDED See FONT
Returns the weight of the font. This may be one of the following keywords, in order of increasing weight, or a system-dependent numeric value for the font's weight. :THIN :EXTRA-LIGHT :LIGHT :SEMI-LIGHT :BOOK :REGULAR :MEDIUM :SEMI-BOLD :BOLD :EXTRA-BOLD :BLACK :EXTRA-BLACK See FONT