summaryrefslogtreecommitdiffstats
path: root/meta-moblin/packages/droid-fonts
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-08-12 12:56:40 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-08-12 12:56:40 +0100
commit5918fbc9355021ce15abf6dea61a155209280999 (patch)
tree92aa3834f455e323b0e14f57f564ce6281241f99 /meta-moblin/packages/droid-fonts
parentb8398e1cdf4a2810dcf26f1759104a3ec8948ee5 (diff)
downloadpoky-5918fbc9355021ce15abf6dea61a155209280999.tar.gz
Add droid-fonts
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta-moblin/packages/droid-fonts')
-rw-r--r--meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-fontconfig.conf24
-rw-r--r--meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-mono-fontconfig.conf16
-rw-r--r--meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-serif-fontconfig.conf16
-rw-r--r--meta-moblin/packages/droid-fonts/droid-fonts_1.0.112.bb38
4 files changed, 94 insertions, 0 deletions
diff --git a/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-fontconfig.conf b/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-fontconfig.conf
new file mode 100644
index 0000000000..6e08254bda
--- /dev/null
+++ b/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-fontconfig.conf
@@ -0,0 +1,24 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
3<fontconfig>
4 <alias>
5 <family>sans-serif</family>
6 <prefer>
7 <family>Droid Sans</family>
8 </prefer>
9 </alias>
10 <alias>
11 <family>Droid Sans</family>
12 <default>
13 <family>sans-serif</family>
14 </default>
15 </alias>
16 <match target="scan">
17 <test name="family">
18 <string>Droid Sans Fallback</string>
19 </test>
20 <edit name="family">
21 <string>Droid Sans</string>
22 </edit>
23 </match>
24</fontconfig>
diff --git a/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-mono-fontconfig.conf b/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-mono-fontconfig.conf
new file mode 100644
index 0000000000..5c7f475419
--- /dev/null
+++ b/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-sans-mono-fontconfig.conf
@@ -0,0 +1,16 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
3<fontconfig>
4 <alias>
5 <family>monospace</family>
6 <prefer>
7 <family>Droid Sans Mono</family>
8 </prefer>
9 </alias>
10 <alias>
11 <family>Droid Sans Mono</family>
12 <default>
13 <family>monospace</family>
14 </default>
15 </alias>
16</fontconfig>
diff --git a/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-serif-fontconfig.conf b/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-serif-fontconfig.conf
new file mode 100644
index 0000000000..30c15015fc
--- /dev/null
+++ b/meta-moblin/packages/droid-fonts/droid-fonts/droid-fonts-serif-fontconfig.conf
@@ -0,0 +1,16 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
3<fontconfig>
4 <alias>
5 <family>serif</family>
6 <prefer>
7 <family>Droid Serif</family>
8 </prefer>
9 </alias>
10 <alias>
11 <family>Droid Serif</family>
12 <default>
13 <family>serif</family>
14 </default>
15 </alias>
16</fontconfig>
diff --git a/meta-moblin/packages/droid-fonts/droid-fonts_1.0.112.bb b/meta-moblin/packages/droid-fonts/droid-fonts_1.0.112.bb
new file mode 100644
index 0000000000..19ef6f1420
--- /dev/null
+++ b/meta-moblin/packages/droid-fonts/droid-fonts_1.0.112.bb
@@ -0,0 +1,38 @@
1HOMEPAGE = "http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts"
2
3DESCRIPTION = "The Droid typeface family was designed in the fall of 2006 by Ascender's \
4 Steve Matteson, as a commission from Google to create a set of system fonts \
5 for its Android platform. The goal was to provide optimal quality and comfort \
6 on a mobile handset when rendered in application menus, web browsers and for \
7 other screen text."
8
9SRC_URI = "http://pokylinux.org/sources/droid-fonts-1.0.112.tar.gz \
10 file://droid-fonts-sans-fontconfig.conf \
11 file://droid-fonts-sans-mono-fontconfig.conf \
12 file://droid-fonts-serif-fontconfig.conf "
13
14LICENSE = "Apache License, Version 2.0"
15SECTION = "x11/fonts"
16RDEPENDS = "fontconfig-utils"
17PACKAGES = "${PN}"
18FILES_${PN} += "${sysconfdir} ${datadir}"
19
20do_install () {
21 install -d ${D}${datadir}/fonts/ttf/
22 for i in *.ttf; do
23 install -m 0644 $i ${D}${prefix}/share/fonts/ttf/${i}
24 done
25
26 install -d ${D}${sysconfdir}/fonts/conf.d/
27 install -m 0644 ${WORKDIR}/*.conf ${D}${sysconfdir}/fonts/conf.d/
28
29 install -d ${D}${prefix}/share/doc/${PN}/
30 install -m 0644 README.txt ${D}${datadir}/doc/${PN}/
31 install -m 0644 NOTICE ${D}${datadir}/doc/${PN}/
32}
33
34pkg_postinst () {
35#!/bin/sh
36fc-cache
37}
38