table of contents
BDF2PSF(1) | Console-setup User's Manual | BDF2PSF(1) |
NAME¶
bdf2psf - convert a BDF font to PSF format for the Linux consoleSYNOPSIS¶
bdf2psf [--fb] [--log logfile] bdf{+bdf} equivalence{+equivalence} symbols{+[:]symbols} size psf [sfm]DESCRIPTION¶
The program bdf2psf translates BDF fonts to PSF format. It accepts fonts with arbitrary size of the font matrix. If the width of the glyph matrix of the source font is 7 or 9 pixels then it generates fonts with width of 8 pixels.OPTIONS¶
- --fb
- Generate font for framebuffer. There are two important
differences between the framebuffer and the text mode. First, all fonts in
text mode have to have matrix 8 pixels width. They also have to have
either 256 or 512 glyphs. Second, in most text modes the hardware does
some magic in order to use 8 pixels width fonts as if they were 9 pixels
width. In order to achieve this the video hardware copies the 8th column
in the 9th column of the glyphs with codes from 0xC0 to 0xDF and from
0x1C0 to 0x1DF. Bdf2psf is very careful when deciding where to
place a particular glyph and as a result the encoding of the generated
font is more or less arbitrary.
- --log logfile
- Record in the file logfile any problems during the
conversion.
- bdf{+bdf}
- The "+"-separated list of the source BDF font(s).
When a particular symbol is defined in more than one of the specified
fonts then fonts listed first take precedence.
- equivalence{+equivalence}
- A "+"-separated list of files defining an
equivalence relation between the glyphs. See the section EQUIVALENCE FILES
below.
- symbols{+[:]symbols}
- A "+"-separated list of files describing
character sets. The generated font will support all specified character
sets. When there is no space in the PSF font for all symbols, the
character sets listed first take precedence. When a colon before a
character set is specified no warnings will be issued for symbols that
could not be placed in the font. See the section CHARACTER SETS below.
- size
- The size of the PSF font. Usually 256 or 512 glyphs.
- psf
- The name of the generated font. If a file with this name
already exists it will be overwritten.
- sfm
- Save in the file sfm the SFM of the generated font.
This parameter is optional.
CHARACTER SETS¶
The encodings of the traditional console fonts a similar to the standard encodings of the different languages. For example there are fonts for all variants of ISO 8859. This is redundant, for example ISO 8859-1, ISO 8859-9 and ISO 8859-15 differ only by few characters and can be easily covered by only one font.EQUIVALENCE FILES¶
The equivalence files define an equivalence relation between unicodes. The sharp sign is used for comments, the empty lines are ignored. All other lines should list two or more unicodes. Only one glyph will be allocated in the PSF font for these unicodes.U+2126 U+03A9
# U+2126: OHM SIGN
# U+03A9: GREEK CAPITAL LETTER OMEGA
U+041D U+0048
# U+041D: CYRILLIC CAPITAL LETTER EN
# U+0048: LATIN CAPITAL LETTER H
FILES¶
All mentioned files and directories are usually installed in /usr/share/bdf2psf or /usr/local/share/bdf2psf.AUTHOR¶
Anton Zinoviev <anton@lml.bas.bg>2006-01-16 | console-setup |