Re: fontmap missing! gurulabs to blame? (NO)



Ray Clouse said once upon a time (Sun, 5 Sep 1999):

> I installed the latest, greatest RPMs from ftp.gurulabs.com, and when I try
> to run Gnumeric (for example), I get this:
> 
> --
> undertow:~ 43>gnumeric
> Cannot read file /home/clouse/.gnome/fonts/fontmap :
> gzopen failed: No such file or directory
> Cannot read file /usr/share/fonts/fontmap :
> gzopen failed: No such file or directory
> Gnumeric failed to find a suitable default font.

Did you install the gnome-print 0.6 rpm? 
Maybe you tried to relocate the RPM, or installed gnumeric with --nodeps?

The file /usr/share/fonts/fontmap is generated when you install the
gnome-print RPM by the gnome-font-install program.

Here is the snippet from the SPEC file.

%post
[snip some irrelevant stuff]
%{prefix}/bin/gnome-font-install --system --scan --no-copy \
        --afm-path=%{prefix}/share/fonts/afms \
        --pfb-path=%{prefix}/share/fonts/pfbs \
        --pfb-assignment=ghostscript,%{prefix}/share/fonts/default/ghostscript \
        --afm-assignment=ghostscript,%{prefix}/share/fonts/default/ghostscript \
        --pfb-assignment=ghostscript,%{prefix}/share/fonts/default/Type1 \
        --afm-assignment=ghostscript,%{prefix}/share/fonts/default/Type1 \
        %{prefix}/share/fonts/ > /dev/null 2>&1


It seems to work great, observe.

[dkelson@thud:/usr/share/fonts] ls -al
total 119
drwxr-xr-x   4 root     root         1024 Sep  6 01:16 .
drwxr-xr-x  58 root     root         2048 Sep  4 00:45 ..
drwxr-xr-x   3 root     root         1024 Jul 20 09:50 afms
drwxr-xr-x   4 root     root         1024 Jul 10 12:28 default
[dkelson@thud:/usr/share/fonts] 

(no fontmap file, now I install gnome-print 0.6)

[dkelson@thud:/usr/share/fonts] rpm -Uvh
/usr/src/redhat/RPMS/i386/gnome-print-0.6-2.i386.rpm
/usr/src/redhat/RPMS/i386/gnome-print-devel-0.6-2.i386.rpm
gnome-print
##################################################
gnome-print-devel
##################################################
[dkelson@thud:/usr/share/fonts] ls -al
total 139
drwxr-xr-x   4 root     root         1024 Sep  6 01:24 .
drwxr-xr-x  58 root     root         2048 Sep  4 00:45 ..
-rwxr-xr-x   1 root     root         8740 Sep  6 01:22 X.font
-rwxr-xr-x   1 root     root         7939 Sep  6 01:22 adobe-urw.font
drwxr-xr-x   3 root     root         1024 Sep  6 01:24 afms
-rwxr-xr-x   1 root     root        43023 Sep  6 01:22 debian.font
drwxr-xr-x   4 root     root         1024 Jul 10 12:28 default
-rw-r--r--   1 root     root        19418 Sep  6 01:24 fontmap
-rwxr-xr-x   1 root     root          241 Sep  6 01:22 groff.font
-rwxr-xr-x   1 root     root        42673 Sep  6 01:22 tex.font
-rwxr-xr-x   1 root     root         8453 Sep  6 01:22 urw-urw.font
[dkelson@thud:/usr/share/fonts] 

Tadda! The fontmap file is there.

Dax Kelson
Guru Labs

P.S. While I was verifying the gnome-print RPM correctly created the
fontmap file, I found it was missing 4 ghostscript font entries. So I've
made new gnome-print RPMs. With the new RPM (on a default RH box) your
fontmap file should have 75 lines, the older RPM had 71.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]