🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #1266

Re: decoding .bdf files

#1266
From: Jan van der Steen
Date: Wed, 21 Nov 1990 08:57
63 lines
2301 bytes
wolf@alesi.cipl.uiowa.edu (Mike Wolf) writes:

>I have two files, standard.bdf and xconq.bdf,  these are supposed
>to be X11 font files encoded.  How do I decode them?  The README
>file with the archives says to smply do 'make X11fonts', but I get
>the following when I try this:

>(cd lib;  fc xconq.bdf;  fc standard.bdf)
>sh: fc: not found
>*** Error code 1

>Stop.

>What format are these files in and how do I decode them?

>All help appreciated, thanks.

>Michael
>WOLF@MEL.CIPL.UIOWA.EDU


Bdf files contain ascii data (bitmap distribution format).
They specify a font by including a bitmap for each character.
You can "compile" the font by running bdftosnf (which comes with
the X11R[34] system):

    bdftosnf standard.bdf > standard.snf
    bdftosnf    xconq.bdf >    xconq.snf

Next you execute:

    mkfontdir <dir>

where <dir> is the directory where you installed the .snf files.
This command will create a file "fonts.dir" with information
about the fontname->filename mappings.

After that you add that very directory to your fontpath:

    xset fp+ <dir>

If the directory already was included in your fontpath you can
replace the above line with a:

    xset fp rehash

Finally, you can check to see if the fonts are known by the X-server
by executing:

    xlsfonts | more


	Jan van der Steen
-- 
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
     Jan van der Steen                 jansteen@cwi.nl
     Centre for Mathematics and Computer Science (CWI)
     Kruislaan 413, 1098 SJ Amsterdam, The Netherlands
--
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
     Jan van der Steen                 jansteen@cwi.nl
     Centre for Mathematics and Computer Science (CWI)
     Kruislaan 413, 1098 SJ Amsterdam, The Netherlands
Technical Details
Message-ID: <jansteen.659177834@piring.cwi.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!charon!piring.cwi.nl!jansteen
References: <3276@ns-mx.uiowa.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!charon!piring.cwi.nl!jansteen
From: jansteen@cwi.nl (Jan van der Steen)
Newsgroups: comp.unix.programmer
Subject: Re: decoding .bdf files
Message-ID: <jansteen.659177834@piring.cwi.nl>
Date: 21 Nov 90 08:57:14 GMT
References: <3276@ns-mx.uiowa.edu>
Sender: news@cwi.nl
Distribution: rec.games.misc
Lines: 63