Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jul 1999 23:35:30 +0100
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Evren Yurtesen <yurtesen@ispro.net.tr>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: how to create a font ?
Message-ID:  <19990707233530.A42991@rainbow5.scientia.demon.co.uk>
In-Reply-To: <3783A62B.6976A379@ispro.net.tr>
References:  <3783A62B.6976A379@ispro.net.tr>

next in thread | previous in thread | raw e-mail | index | archive | help
Evren Yurtesen wrote:

> I want to have turkish characters on my freebsd box console
> but the problem is I could not find any character set with iso-8859-9
> or any font.
> how can I create them?

Create a font file under /usr/share/syscons/fonts. The format is very
simple; one bit per screen pixel. So, since all fonts are 8 pixels wide,
one byte == one line, with varying numbers of lines per character (8, 14
or 16).

I actually wrote a couple of *very* rough programs for editing syscons
fonts, though there may be better ones available. fontdump will
dump a font file to a human readable form, and fontmake reads the
human readable format after you've edited it, and write it as a font
file. Both read from the file specified by argv[1], write to standard
output.

Note that the files under /usr/share/syscons/fonts are uuencoded, you'll
need to uudecode it before running fontdump on it, and you may as well
uuencode your new font before putting it in /usr/share/syscons/fonts.

Run something like,

$ cp /usr/share/syscons/fonts/iso-8859-2-8x16.fnt .
$ uudecode iso-8859-2-8x16.fnt
$ fontdump iso-8859-2-8x16 > newfont
$   (edit newfont as needed, it should be obvious what the format is.)
$ fontmake newfont > iso-8859-9-8x16

Then just copy your iso-8859-9-8x16 file to /usr/share/syscons/fonts and
tell the system to use it with vidcontrol.

Of course, it may well be that someone has already created the font you
need. It may also be worth send-pr'ing your font so it can be included
with FreeBSD for other Turkish users.

-- 
Ben Smithurst            | PGP: 0x99392F7D
ben@scientia.demon.co.uk |   key available from keyservers and
                         |   ben+pgp@scientia.demon.co.uk


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990707233530.A42991>