🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.programmer
3 messages
3 total messages Started by Mike Wolf Tue, 20 Nov 1990 18:38
decoding .bdf files
#1263
Author: Mike Wolf
Date: Tue, 20 Nov 1990 18:38
17 lines
946 bytes
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
Re: decoding .bdf files
#1283
Author: Edward Luke
Date: Wed, 21 Nov 1990 03:07
22 lines
1494 bytes
In article <3276@ns-mx.uiowa.edu> wolf@alesi.cipl.uiowa.edu (Mike Wolf) writes:
   Organization: Cardiovascular Image Processing Laboratory, U of Iowa
   Lines: 17

   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:


I have found that using the program 'bdf2snf' works as a font
converter, and then use the program 'mkfontdir' to include the fonts
in the current font directory.  Also use 'xset +fp <font directory>'
to add a fontdirectory for your server to access if these font files
are not placed with the system fonts.  I can't remember the
particulars, but I am sure the man pages on these utilities will clear
things up.



Ed Luke                                   Mississippi State University
lush@ee.msstate.edu
Re: decoding .bdf files
#1266
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads