|SETFONT(8)||System Manager's Manual||SETFONT(8)|
If no args are given (or only the option -N for some number N), then a default (8xN) font is loaded (see below). One may give several small fonts, all containing a Unicode table, and setfont will combine them and load the union. Typical use:
- Load a default font.
- setfont drdos8x16
- Load a given font (here the 448-glyph drdos font).
- setfont cybercafe -u cybercafe
- Load a given font that does not have a Unicode map and provide one explicitly.
- setfont LatArCyrHeb-19 -m 8859-2
- Load a given font (here a 512-glyph font combining several character sets) and indicate that one's local character set is ISO 8859-2.
Note: if a font has more than 256 glyphs, only 8 out of 16 colors can be used simultaneously. It can make console perception worse (loss of intensity and even some colors).
Suitable arguments for the -m option are for example 8859-1, 8859-2, ..., 8859-15, cp437, ..., cp1250.
Given the Unicode value of the symbol to be displayed, the kernel finds the right glyph in the font using the Unicode mapping info of the font and displays it.
Old fonts do not have Unicode mapping info, and in order to handle them there are direct-to-font maps (also loaded using -m) that give a correspondence between user bytes and font positions. The most common correspondence is the one given in the file trivial (where user byte values are used directly as font positions). Other correspondences are sometimes preferable since the PC video hardware expects line drawing characters in certain font positions.
Giving a -m none argument inhibits the loading and activation of a mapping table. The previous console map can be saved to a file using the -om file option. These options of setfont render mapscrn(8) obsolete. (However, it may be useful to read that man page.)
The Unicode mapping table should assign some glyph to the `missing character' value U+fffd, otherwise missing characters are not translated, giving a usually very confusing result.
Usually no mapping table is needed, and a Unicode mapping table is already contained in the font (sometimes this is indicated by the .psfu extension), so that most users need not worry about the precise meaning and functioning of these mapping tables.
One may add a Unicode mapping table to a psf font using psfaddtable(1).
- -h H
- Override font height.
- Doubles the size of the font, by replicating all of its pixels vertically and horizontally. This is suitable for high pixel density (e.g. "4k") displays on which the standard fonts are too small to be easily legible. Due to kernel limitations, this is suitable only for 16x16 or smaller fonts.
- -m file
- Load console map or Unicode console map from file.
- -o file
- Save previous font in file.
- -O file
- Save previous font and Unicode map in file.
- -om file
- Store console map in file.
- -ou file
- Save previous Unicode map in file.
- -u file
- Load Unicode table describing the font from file.
- -C console
- Set the font for the indicated console. (May require root permissions.)
- Be verbose.
- Print version and exit.
- The default font directory.
- The default directory for Unicode maps.
- The default directory for screen mappings.
The default font is a file default (or default8xN if the -N option was given for some number N) perhaps with suitable extension (like .psf).
|11 Feb 2001||kbd|