From owner-freebsd-questions Tue Jun 20 14: 9:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta01-svc.server.ntlworld.com (mta01-svc.ntlworld.com [62.253.162.41]) by hub.freebsd.org (Postfix) with ESMTP id 9703837B5CB for ; Tue, 20 Jun 2000 14:09:05 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from parish.my.domain ([62.253.86.135]) by mta01-svc.server.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000620210902.XAPJ381.mta01-svc.server.ntlworld.com@parish.my.domain>; Tue, 20 Jun 2000 22:09:02 +0100 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id WAA00595; Tue, 20 Jun 2000 22:09:00 +0100 (BST) (envelope-from mark) Date: Tue, 20 Jun 2000 22:09:00 +0100 From: Mark Ovens To: Dan Nelson Cc: Volodymyr Kostyrko , freebsd-questions@freebsd.org Subject: Re: console fonts Message-ID: <20000620220859.B233@parish> References: <20000620221400.A15865@limbo.dn.ua> <20000620152422.A2110@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000620152422.A2110@dan.emsphone.com>; from dnelson@emsphone.com on Tue, Jun 20, 2000 at 03:24:22PM -0500 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jun 20, 2000 at 03:24:22PM -0500, Dan Nelson wrote: > In the last episode (Jun 20), Volodymyr Kostyrko said: > > Could someone point to subj format (of that keeped in > > /usr/share/syscons/fonts)? Or how about an editor? ;) > > The format is (for some unknown reason) the uuencoded raw font data. > Raw font data is just 16, 14, or 8 bytes per character, starting with > ascii 0. It's a pretty easy format to work with, since characters are > 8 pixels wide, which lets you put one scanline per byte in the > datafile. > > My favorite font editor is an old DOS program called "Font Mania!". > The only place I can find it anymore is > http://zzt.org/zgames/1a_zutils/fm.zip > > Check Simtelnet for more. In the msdos/screen/ section, there are > around 20 editors and probably over 300 fonts. > You will find 2 programs (C source, fontmake.c and fontdump.c) at ftp://ukug.uk.freebsd.org/pub/mark/fontmake/ that will help. These 2 programs were written by Ben Smithurst, not myself. As Dan pointed out the fonts are uuencoded, so (substitute your font for iso-8x16): # cd /usr/share/syscons/fonts # uudecode iso-8x16.fnt which writes it out as iso-8x16 (no .fnt extension), then: # fontdump iso-8x16 > iso-8x16.txt iso-8x16.txt contains the characters represented like this: - Y ---- ## ## ## ## ## ## ## ## #### ## ## ## ## #### -------- - Z ---- ######## ## ## # ## ## ## ## ## ## # ## ## ######## -------- so you can edit the #'s to modify or create new characters, then: # fontmake iso-8x16.txt > iso-8x16 # uuencode iso-8x16 iso-8x16 > iso8x16.fnt HTH > -- > Dan Nelson > dnelson@emsphone.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- If I buy a copy of WinDelete, and it doesn't delete Windows, am I entitled to my money back? ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message