[comp.sys.apollo] Response to the DM fonts to X fonts question

sscott@camdev.UUCP (Steve Scott) (04/07/90)

In article <CMM.0.88.639411863.hanche@vifsla.imf.unit.no> you write:
>Is there a program that will convert a DM font to an X font?
>I am not really happy with any of the fixed-width fonts delivered for X under
>SR10.2 but think /sys/dm/fonts/din_f7x11 is just great.  So, if I could only
>convert it to something Xapollo will understand I will be very happy indeed.
>

Harald,

This is how I do it (there may be other ways):

cp /sys/dm/fonts/din_f7x11 {your home directory}
cd {your home directory}
edfont din_f7x11

- Then from within edfont, save as a bds file

Run bdstosnf on the bds file

Copy the newly created snf file to /usr/lib/X11/fonts/misc

cd /usr/lib/X11/fonts/misc

execute mkfontsdir

Important:  Restart you Xapollo server for the effect to take
place.   You should now see your new font if you do an xlsfonts

I know this is long an drawn out BUT if you have to do it much,
you could automate the process with scripts

Also, I have NOT been very happy with the resulting fonts.  For
instance, the f7x9 et al, run together horizontally.  Bummer!

Hope this helps

-- 
Steve Scott            UUCP: {texbell|texsun}!csccat!camdev!sscott
Motorola, Inc.         Internet : sscott@mot.com  Telephone : 1-817-232-6317


-- 
Steve Scott            UUCP: {texbell|texsun}!csccat!camdev!sscott
Motorola, Inc.         Internet : sscott@mot.com  Telephone : 1-817-232-6317

oj@apollo.HP.COM (Ellis Oliver Jones) (04/09/90)

In article <256@camdev.UUCP> sscott@mot.com (Steve Scott) writes:

I had some problems when I tried Steve Scott's procedure, so here are
my clarifications of it:

Step 1)  copy the GPR format font and translate it to bdf format.

    cp /sys/dm/fonts/din_f7x11 ~/din_f7x11
    cd ~
    edfont din_f7x11
    (Use File/Save As... to save the file with the format "Adobe BDF".)
    (Use File/Exit to quit edfont)

   The font file name you run edfont with is the font 
   name that your font will have in X.  So, rename the font file
   BEFORE you run edfont, and give edfont a simple filename, not a pathname
   with directories and "/" characters in it.

   You need the SR10.2 edfont for this.

Step 2)  convert the bdf format font to snf format (server-normal font format)

      /usr/X11/bin/bdftosnf din_f7x11 >din_f7x11.snf

Step 3) decide where in the file system you want to store your new font.

    Your choices are:
    [] /usr/X11/lib/fonts/75dpi  (most of the "official" XV11R3 fonts live here)
    [] /usr/X11/lib/fonts/100dpi (some "official" fonts live here, many more at R4)
    [] /usr/X11/lib/fonts/oldX11 (the old XV11R2 fonts live here)
    [] /usr/X11/lib/fonts/misc   (a few terminal fonts and the cursor font live here)
    [] your own font directory 

Step 4) copy the snf font into the chosen directory, using "cp" or the like.
        (Careful...this might be on a shared file server)

Step 5) Rebuild the font directory (actually the file "fonts.dir" in the same
        directory as the .snf files):
             cd (whatever font directory)
             /usr/X11/bin/mkfontdir

Step 6) (optional) edit the fonts.alias file if you want your font 
        to have an alternative name.

Step 7) Reset your server's font path:
        (Notice that you DO NOT have to restart the server to
         see a changed font directory.  Rather, restting the font
         path does the trick.)

             /usr/X11/bin/xset +fp (whatever font directory)

Step 8) Make sure you can see the font's name

            /usr/X11/bin/xlsfonts din_f7x11
        
Step 9) Take a look at the font

            /usr/X11/bin/xfd din_f7x11

    Steps 8 and 9 have the potential of crashing your X server
    if something's wrong with the font or the font directory, so
    do them when you don't have anything real important on screen.
 
Step 10) If in step 3 you chose a private font directory instead 
         of one of the standard ones, get your users to use an
         "xset" command (like the one in step 7) during login.

Notice that you can convert a bdf format font to a gpr font 
using edfont, as well.  You can also make your own fonts
in either format with edfont.

Careful:  nothing irritates the owner of a font copyright
more than amateur modifications.  So, if you're going to ship, say,
Bitstream Charter bitmap fonts with your wordprocessing package, 
don't just redesign Charter's ampersand or capital W to your taste, 
then repackage it.

/Ollie Jones (speaking for myself, not necessarily for HP/Apollo)

rees@dabo.ifs.umich.edu (Jim Rees) (04/10/90)

In article <49b35c3a.20b6d@apollo.HP.COM>, oj@apollo.HP.COM (Ellis
Oliver Jones) writes:
> I had some problems when I tried Steve Scott's procedure, so here are
> my clarifications of it:
> 

I had some problems too.  I discovered that X ignored the inter-character
spacing and put all the glyphs right next to each other.  To fix this I
changed the inter-character spacing (under "font params") to 0, then
increased the printing width of all the glyphs by the former inter-character
spacing (this can be done with "all glyphs" under the "font" menu).