Subject: Re: Wscons on i386 EGA/CGA
To: None <port-i386@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: port-i386
Date: 01/18/2000 13:36:26
>> /etc/wscons.conf could contain eg:
>> font ibm - 8 ibm /usr/share/pcvt/fonts/vt220l.808
>> font ibm - 10 ibm /usr/share/pcvt/fonts/vt220l.810
>> screen 5 80x35 vt100
>> screen 6 80x43 vt100
> Is there a procedure for converting an arbitrary font, or more
> realistically say an X pcf font, into a wscons font that can be
> loaded or compiled into the kernel?
If you can get the character bitmaps out of your fontfile (if necessary
with something like getbdf for X fonts), it's pretty trivial to convert
them to a wscons loadable file.
Pick any of the files in /usr/share/pcvt/fonts. Convert each byte of
the file to 8-bit binary. Display it with, say, * for 1 bits and . for
0 bits. Character glyphs will jump out at you.
There is no framing information, like widths and heights; all that
stuff is passed on the wsfontload command line.
der Mouse
mouse@rodents.montreal.qc.ca
7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B