[Bug 1021755] Use fc-cache /usr/share/fonts/<your font directory> instead of /usr/share/fonts

bugzilla at redhat.com bugzilla at redhat.com
Fri Nov 22 13:54:36 UTC 2013


https://bugzilla.redhat.com/show_bug.cgi?id=1021755



--- Comment #6 from Tom "spot" Callaway <tcallawa at redhat.com> ---
[spot at wolverine ~]$ rpm -q urw-fonts
urw-fonts-2.4-17.fc20.noarch
[spot at wolverine ~]$ rpm -q --scripts urw-fonts-2.4-17.fc20
postinstall scriptlet (using /bin/sh):
{
   umask 133
   mkfontscale /usr/share/fonts/default/Type1 || :
   mkfontdir /usr/share/fonts/default/Type1 || :
   fc-cache /usr/share/fonts
} &> /dev/null || :
postuninstall scriptlet (using /bin/sh):
{
   if [ "$1" = "0" ]; then
      fc-cache /usr/share/fonts
   fi
} &> /dev/null || :

[spot at wolverine ~]$ sudo rpm -Uvh urw-fonts-2.4-18.fc20.noarch.rpm 
Preparing...                          ################################# [100%]
Updating / installing...
   1:urw-fonts-2.4-18.fc20            ################################# [ 50%]
Cleaning up / removing...
   2:urw-fonts-2.4-17.fc20            ################################# [100%]

[spot at wolverine ~]$ rpm -q urw-fonts
urw-fonts-2.4-18.fc20.noarch

[spot at wolverine ~]$ rpm -q --scripts urw-fonts-2.4-18.fc20
postinstall scriptlet (using /bin/sh):
{
   umask 133
   mkfontscale /usr/share/fonts/default/Type1 || :
   mkfontdir /usr/share/fonts/default/Type1 || :
   fc-cache /usr/share/fonts/default/Type1
} &> /dev/null || :
postuninstall scriptlet (using /bin/sh):
{
   if [ "$1" = "0" ]; then
      fc-cache /usr/share/fonts/default/Type1
   fi
} &> /dev/null || :

*****

Note the fc-cache lines have been fixed, and are not the same as Akira's.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=5JBpO3wE9Z&a=cc_unsubscribe


More information about the fonts-bugs mailing list