Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jun 2000 22:09:00 +0100
From:      Mark Ovens <mark@ukug.uk.freebsd.org>
To:        Dan Nelson <dnelson@emsphone.com>
Cc:        Volodymyr Kostyrko <arcade@limbo.dn.ua>, freebsd-questions@freebsd.org
Subject:   Re: console fonts
Message-ID:  <20000620220859.B233@parish>
In-Reply-To: <20000620152422.A2110@dan.emsphone.com>; from dnelson@emsphone.com on Tue, Jun 20, 2000 at 03:24:22PM -0500
References:  <20000620221400.A15865@limbo.dn.ua> <20000620152422.A2110@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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