From owner-freebsd-questions Wed Jul 7 16:28:30 1999 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 8305A14D34 for ; Wed, 7 Jul 1999 16:28:13 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from rainbow5.scientia.demon.co.uk ([192.168.1.2] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.02 #1) id 1120Hr-000PTB-00; Wed, 07 Jul 1999 23:35:31 +0100 (envelope-from ben@rainbow5.scientia.demon.co.uk) Received: from rainbow5.scientia.demon.co.uk (ident=ben) by rainbow5.scientia.demon.co.uk with local (Exim 3.02 #1) id 1120Hq-000BDb-00; Wed, 07 Jul 1999 23:35:30 +0100 (envelope-from ben@rainbow5.scientia.demon.co.uk) Date: Wed, 7 Jul 1999 23:35:30 +0100 From: Ben Smithurst To: Evren Yurtesen Cc: freebsd-questions@freebsd.org Subject: Re: how to create a font ? Message-ID: <19990707233530.A42991@rainbow5.scientia.demon.co.uk> References: <3783A62B.6976A379@ispro.net.tr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <3783A62B.6976A379@ispro.net.tr> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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