aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ttf-opensans
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-06-14 13:44:27 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-06-14 13:44:27 +0200
commit8d8a65b72e12c5e9fc7b74662b29a6f75aa136f0 (patch)
tree4ada960864b2bd408f14fa80980146270ce52cc0 /testing/ttf-opensans
parent90969f7494a648a0d18773cd3a4fa9c90ad4f116 (diff)
downloadaports-8d8a65b72e12c5e9fc7b74662b29a6f75aa136f0.tar.bz2
aports-8d8a65b72e12c5e9fc7b74662b29a6f75aa136f0.tar.xz
testing/ttf-opensans: new aport
Diffstat (limited to 'testing/ttf-opensans')
-rw-r--r--testing/ttf-opensans/45-opensans.conf19
-rw-r--r--testing/ttf-opensans/90-tt-opensans.conf178
-rw-r--r--testing/ttf-opensans/APKBUILD50
3 files changed, 247 insertions, 0 deletions
diff --git a/testing/ttf-opensans/45-opensans.conf b/testing/ttf-opensans/45-opensans.conf
new file mode 100644
index 0000000000..6f1a7207e4
--- /dev/null
+++ b/testing/ttf-opensans/45-opensans.conf
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+ <alias>
+ <family>Open Sans</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+
+ <alias>
+ <family>Open Sans Condensed</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+
+</fontconfig>
diff --git a/testing/ttf-opensans/90-tt-opensans.conf b/testing/ttf-opensans/90-tt-opensans.conf
new file mode 100644
index 0000000000..e7029532d3
--- /dev/null
+++ b/testing/ttf-opensans/90-tt-opensans.conf
@@ -0,0 +1,178 @@
+<?xml version='1.0'?>
+<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
+<fontconfig>
+
+ <!-- Open Sans -->
+ <match target="font">
+ <test name="force_autohint">
+ <bool>false</bool>
+ </test>
+ <test name="family">
+ <string>Open Sans</string>
+ </test>
+ <edit name="antialias" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hinting" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hintstyle" mode="assign">
+ <const>hintslight</const>
+ </edit>
+ <edit name="autohint" mode="assign">
+ <bool>false</bool>
+ </edit>
+ </match>
+
+ <!-- Regular -->
+ <match target="font">
+ <test name="family">
+ <string>Open Sans</string>
+ </test>
+ <test name="weight" compare="less">
+ <const>medium</const>
+ </test>
+ <test name="pixelsize" compare="less">
+ <double>9.0</double>
+ </test>
+ <edit name="hintstyle" mode="assign">
+ <const>hintfull</const>
+ </edit>
+ <edit name="lcd_filter" mode="assign">
+ <const>lcdlegacy</const>
+ </edit>
+ </match>
+
+ <!-- Light -->
+ <match target="font">
+ <test name="force_autohint">
+ <bool>false</bool>
+ </test>
+ <test name="family">
+ <string>Open Sans</string>
+ </test>
+ <test name="weight" compare="less">
+ <const>regular</const>
+ </test>
+ <test name="pixelsize" compare="less">
+ <double>15.5</double>
+ </test>
+ <edit name="hintstyle" mode="assign">
+ <const>hintfull</const>
+ </edit>
+ </match>
+
+ <match target="font">
+ <test name="force_autohint">
+ <bool>false</bool>
+ </test>
+ <test name="family">
+ <string>Open Sans</string>
+ </test>
+ <test name="weight" compare="less">
+ <const>regular</const>
+ </test>
+ <test name="pixelsize" compare="more">
+ <double>25.5</double>
+ </test>
+ <edit name="hintstyle" mode="assign">
+ <const>hintfull</const>
+ </edit>
+ </match>
+
+ <!-- +Medium -->
+ <match target="font">
+ <test name="family">
+ <string>Open Sans</string>
+ </test>
+ <test name="weight" compare="more">
+ <const>medium</const>
+ </test>
+ <test name="pixelsize" compare="less">
+ <double>9.0</double>
+ </test>
+ <edit name="hintstyle" mode="assign">
+ <const>hintslight</const>
+ </edit>
+ <edit name="lcd_filter" mode="assign">
+ <const>lcdnone</const>
+ </edit>
+ </match>
+
+ <match target="font">
+ <test name="force_autohint">
+ <bool>false</bool>
+ </test>
+ <test name="family">
+ <string>Open Sans</string>
+ </test>
+ <test name="weight" compare="more">
+ <const>medium</const>
+ </test>
+ <test name="pixelsize" compare="more">
+ <double>8.5</double>
+ </test>
+ <test name="pixelsize" compare="less">
+ <double>11.5</double>
+ </test>
+ <edit name="hintstyle" mode="assign">
+ <const>hintfull</const>
+ </edit>
+ </match>
+
+ <match target="font">
+ <test name="force_autohint">
+ <bool>false</bool>
+ </test>
+ <test name="family">
+ <string>Open Sans</string>
+ </test>
+ <test name="weight" compare="more">
+ <const>medium</const>
+ </test>
+ <test name="pixelsize" compare="more">
+ <double>14.5</double>
+ </test>
+ <test name="pixelsize" compare="less">
+ <double>15.5</double>
+ </test>
+ <edit name="lcd_filter" mode="assign">
+ <const>lcdlegacy</const>
+ </edit>
+ </match>
+
+ <!-- Open Sans Condensed -->
+ <match target="font">
+ <test name="force_autohint">
+ <bool>false</bool>
+ </test>
+ <test name="family">
+ <string>Open Sans Condensed</string>
+ </test>
+ <edit name="antialias" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hinting" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hintstyle" mode="assign">
+ <const>hintslight</const>
+ </edit>
+ <edit name="autohint" mode="assign">
+ <bool>false</bool>
+ </edit>
+ </match>
+
+ <match target="font">
+ <test name="family">
+ <string>Open Sans Condensed</string>
+ </test>
+ <test name="pixelsize" compare="less">
+ <double>9.0</double>
+ </test>
+ <edit name="lcd_filter" mode="assign">
+ <const>lcdnone</const>
+ </edit>
+ </match>
+
+</fontconfig>
diff --git a/testing/ttf-opensans/APKBUILD b/testing/ttf-opensans/APKBUILD
new file mode 100644
index 0000000000..635c241db6
--- /dev/null
+++ b/testing/ttf-opensans/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=ttf-opensans
+pkgver=1.2
+pkgrel=0
+pkgdesc="Open Sans is a humanist sans serif typeface designed by Steve Matteson"
+url="http://opensans.com/"
+arch="noarch"
+license="Apache"
+depends="fontconfig"
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages=""
+# added fontconfig configuration from:
+# https://github.com/bohoomil/fontconfig-ultimate/tree/master/fontconfig_patches/fonts-settings
+source="http://dev.alpinelinux.org/archive/ttf-opensans/ttf-opensans-$pkgver.tar.gz
+ 45-opensans.conf
+ 90-tt-opensans.conf"
+
+_builddir="$srcdir"/$pkgname
+
+build() {
+ cd "$_builddir"
+}
+
+package() {
+ mkdir -p "$pkgdir"/usr/share/fonts/$pkgname \
+ "$pkgdir"/etc/fonts/conf.avail \
+ "$pkgdir"/etc/fonts/conf.d
+ for i in "$_builddir"/*.ttf; do
+ install -m644 "$i" \
+ "$pkgdir"/usr/share/fonts/$pkgname/ || return 1
+ done
+ for j in "$srcdir"/*.conf; do
+ install -m644 "$j" \
+ "$pkgdir"/etc/fonts/conf.avail/ || return 1
+ cd "$pkgdir"/etc/fonts/conf.d
+ ln -sf /etc/fonts/conf.avail/${j##*/}
+ done
+}
+md5sums="65288f5ce42c8f0c65b1325d74df60cc ttf-opensans-1.2.tar.gz
+92ba870ab9de8466dfb3fdf3f02f5eaa 45-opensans.conf
+84f21626d61c7f2a61d673aabddf10fb 90-tt-opensans.conf"
+sha256sums="92470f153bb19fc3edefde04f485755cc084cdd7d4bcedf90f655a09ffa32032 ttf-opensans-1.2.tar.gz
+fa343948e4225f8ab73ce72ff4f6520dec60be396beb57551f30e675b498fd31 45-opensans.conf
+e6213d0af8c24688742903d5b7bd77515c3a249db0a9e0cef4aa107f5b64d5b3 90-tt-opensans.conf"
+sha512sums="6d20a92286db4757acf05123571388d381c761f46080c9dbf175a69535a4b29efa284d1e629a9cbe7f9e43ba05de4140ce38ea6c0f3e53e596c50f9cf3dcde21 ttf-opensans-1.2.tar.gz
+853d50f6d0ff309b170ae6e0fb8f6a0b96dbf842b8ef9ac3c9f4c22aa269ef7a1009d6c39810be1e9adab7d44fb5e7772d5d7ecfecf6cfe18538b999e3390215 45-opensans.conf
+4e3c0e9d3e6fb8f87ec294cda375671a50588998192384e8503550f8c9471501e8d1fd9fb1eb819a630651ab8a81054704d0ca15c0d5de31d5e2067f3837d276 90-tt-opensans.conf"