Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#1720 - font proposal for xorg
Attached to Project:
Arch Linux
Opened by Tobias Powalowski (tpowa) - Tuesday, 02 November 2004, 07:44 GMT
Last edited by Judd Vinet (judd) - Tuesday, 02 November 2004, 16:50 GMT
Opened by Tobias Powalowski (tpowa) - Tuesday, 02 November 2004, 07:44 GMT
Last edited by Judd Vinet (judd) - Tuesday, 02 November 2004, 16:50 GMT
|
Detailshi
in order to make it possible to install ttf fonts in arch with pacman and make openoffice happy with this some things need to be changed: xorg package: x.install: please add this after fc-cache cd /usr/X11R6/lib/X11/fonts/TTF /usr/X11R6/bin/mkfontscale /usr/X11R6/bin/mkfontdir for all other fonts packages i recommend to install these packages now to /usr/X11R6/lib/X11/fonts/TTF and add the lines above to your .install file after fc-cache and add to your fonts-package this also to your remove section (fc-cache should also be included) then the fonts are cleanly deinstalled and installed |
This task depends upon
# arg 1: the new package version
post_install() {
echo -n "updating font cache... "
/sbin/ldconfig -r .
/usr/bin/fc-cache
cd /usr/X11R6/lib/X11/fonts/TTF
/usr/X11R6/bin/mkfontscale
/usr/X11R6/bin/mkfontdir
cp ../encodings/encodings.dir ./encodings.dir
echo "done."
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
}
# arg 1: the old package version
pre_remove() {
/bin/true
}
op=$1
shift
$op $*
and now here my proposal for ttf packages:
# arg 1: the new package version
post_install() {
echo -n "updating font cache... "
/sbin/ldconfig -r .
/usr/bin/fc-cache
cd /usr/X11R6/lib/X11/fonts/TTF
/usr/X11R6/bin/mkfontscale
/usr/X11R6/bin/mkfontdir
cp ../encodings/encodings.dir ./encodings.dir
echo "done."
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
}
# arg 1: the old package version
post_remove() {
/usr/bin/fc-cache
cd /usr/X11R6/lib/X11/fonts/TTF
/usr/X11R6/bin/mkfontscale
/usr/X11R6/bin/mkfontdir
cp ../encodings/encodings.dir ./encodings.dir
}
op=$1
shift
$op $*