summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-fonts/pothana2k/ChangeLog10
-rw-r--r--media-fonts/pothana2k/files/65-pothana2k.conf31
-rw-r--r--media-fonts/pothana2k/pothana2k-2006-r1.ebuild (renamed from media-fonts/pothana2k/pothana2k-2006.ebuild)8
3 files changed, 47 insertions, 2 deletions
diff --git a/media-fonts/pothana2k/ChangeLog b/media-fonts/pothana2k/ChangeLog
index 45117fc974b8..c69fbde6a95b 100644
--- a/media-fonts/pothana2k/ChangeLog
+++ b/media-fonts/pothana2k/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-fonts/pothana2k
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-fonts/pothana2k/ChangeLog,v 1.1 2008/06/05 11:13:24 loki_val Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-fonts/pothana2k/ChangeLog,v 1.2 2008/06/05 11:44:24 loki_val Exp $
+
+*pothana2k-2006-r1 (05 Jun 2008)
+
+ 05 Jun 2008; Peter Alfredsen <loki_val@gentoo.org>
+ +files/65-pothana2k.conf, -pothana2k-2006.ebuild,
+ +pothana2k-2006-r1.ebuild:
+ adding fontconfig file to enable rendering Telugu even though a single
+ glyph is missing
*pothana2k-2006 (05 Jun 2008)
diff --git a/media-fonts/pothana2k/files/65-pothana2k.conf b/media-fonts/pothana2k/files/65-pothana2k.conf
new file mode 100644
index 000000000000..5577a3567ba8
--- /dev/null
+++ b/media-fonts/pothana2k/files/65-pothana2k.conf
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!-- Telugu (te) -->
+<match target="font">
+ <test name="lang" compare="contains">
+ <string>te</string>
+ </test>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Pothana2000</family>
+ </prefer>
+ </alias>
+</match>
+
+<match target="font">
+ <test name="lang" compare="contains">
+ <string>te</string>
+ </test>
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>Vemana</family>
+ </prefer>
+ </alias>
+</match>
+<!-- Telugu (te) ends -->
+
+</fontconfig>
+
diff --git a/media-fonts/pothana2k/pothana2k-2006.ebuild b/media-fonts/pothana2k/pothana2k-2006-r1.ebuild
index 54ceaf7afbfd..a2ad0ac99be7 100644
--- a/media-fonts/pothana2k/pothana2k-2006.ebuild
+++ b/media-fonts/pothana2k/pothana2k-2006-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-fonts/pothana2k/pothana2k-2006.ebuild,v 1.1 2008/06/05 11:13:24 loki_val Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-fonts/pothana2k/pothana2k-2006-r1.ebuild,v 1.1 2008/06/05 11:44:24 loki_val Exp $
inherit font
@@ -20,6 +20,8 @@ S="${WORKDIR}"
FONT_S="${WORKDIR}"
FONT_SUFFIX="ttf"
+FONT_CONF=( "${FILESDIR}/65-pothana2k.conf" )
+
src_install() {
font_src_install
if use doc
@@ -28,3 +30,7 @@ src_install() {
fi
}
+pkg_postinst() {
+ elog "To actually use this font for rendering Telugu, enable it in fontconfig:"
+ elog "eselect fontconfig enable 65-pothana2k.conf"
+}