cantarell-fonts: enable autohinting.
This commit is contained in:
parent
4aafb42ba5
commit
4eff97a8e4
4 changed files with 20 additions and 7 deletions
|
@ -4,7 +4,7 @@
|
||||||
case "${ACTION}" in
|
case "${ACTION}" in
|
||||||
post)
|
post)
|
||||||
echo "Building fonts cache... "
|
echo "Building fonts cache... "
|
||||||
fc-cache -f >/dev/null
|
fc-cache -fs >/dev/null
|
||||||
echo "done."
|
echo "done."
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
case "${ACTION}" in
|
case "${ACTION}" in
|
||||||
post)
|
post)
|
||||||
echo "Building fonts cache... "
|
echo "Building fonts cache... "
|
||||||
fc-cache -f >/dev/null
|
fc-cache -fs >/dev/null
|
||||||
echo "done."
|
echo "done."
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
13
srcpkgs/cantarell-fonts/files/21-cantarell-hinting.conf
Normal file
13
srcpkgs/cantarell-fonts/files/21-cantarell-hinting.conf
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<!-- Force the autohinter for Cantarell, as it does not have TT hinting -->
|
||||||
|
<match target="font">
|
||||||
|
<test name="family" compare="eq" ignore-blanks="true">
|
||||||
|
<string>Cantarell</string>
|
||||||
|
</test>
|
||||||
|
<edit name="autohint">
|
||||||
|
<bool>true</bool>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
</fontconfig>
|
|
@ -1,19 +1,17 @@
|
||||||
# Template file for 'cantarell-fonts'
|
# Template file for 'cantarell-fonts'
|
||||||
pkgname=cantarell-fonts
|
pkgname=cantarell-fonts
|
||||||
version=0.0.12
|
version=0.0.12
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
makedepends="pkg-config"
|
makedepends="pkg-config"
|
||||||
fulldepends="fontconfig"
|
fulldepends="fontconfig"
|
||||||
short_desc="Cantarell family of TrueType fonts"
|
short_desc="Cantarell family of TrueType fonts"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
homepage="http://abattis.org/cantarell/"
|
||||||
|
license="GPL-2"
|
||||||
distfiles="${GNOME_SITE}/$pkgname/0.0/$pkgname-$version.tar.xz"
|
distfiles="${GNOME_SITE}/$pkgname/0.0/$pkgname-$version.tar.xz"
|
||||||
checksum=3d509e1117dd92a6b80ef8b2586c89e178dc21a03c7c61f5c50772def5c4934b
|
checksum=3d509e1117dd92a6b80ef8b2586c89e178dc21a03c7c61f5c50772def5c4934b
|
||||||
long_desc="
|
|
||||||
The Cantarell typeface family is a contemporary Humanist
|
|
||||||
sans serif, and is used by the GNOME project for its user
|
|
||||||
interface and the Fedora project."
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vmkdir etc/fonts/conf.d
|
vmkdir etc/fonts/conf.d
|
||||||
|
@ -21,4 +19,6 @@ post_install() {
|
||||||
${DESTDIR}/etc/fonts/conf.avail
|
${DESTDIR}/etc/fonts/conf.avail
|
||||||
rmdir ${DESTDIR}/usr/share/fontconfig
|
rmdir ${DESTDIR}/usr/share/fontconfig
|
||||||
ln -s ../conf.avail/31-cantarell.conf ${DESTDIR}/etc/fonts/conf.d
|
ln -s ../conf.avail/31-cantarell.conf ${DESTDIR}/etc/fonts/conf.d
|
||||||
|
vinstall ${FILESDIR}/21-cantarell-hinting.conf 644 etc/fonts/conf.avail
|
||||||
|
ln -s ../conf.avail/21-cantarell-hinting.conf ${DESTDIR}/etc/fonts/conf.d
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue