Arch Linux

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!
Tasklist

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
Task Type Bug Report
Category System
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

hi
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

Closed by  Tobias Powalowski (tpowa)
Tuesday, 08 February 2005, 08:46 GMT
Reason for closing:  Fixed
Comment by Tobias Powalowski (tpowa) - Tuesday, 02 November 2004, 09:32 GMT
now here my proposal for x.install:
# 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 $*
Comment by Judd Vinet (judd) - Tuesday, 02 November 2004, 16:50 GMT
Okay, x.install is updated for the next xorg build.

Loading...