diff options
-rw-r--r-- | testing/ttf-merriweather/45-merriweather.conf | 12 | ||||
-rw-r--r-- | testing/ttf-merriweather/90-tt-merriweather.conf | 26 | ||||
-rw-r--r-- | testing/ttf-merriweather/APKBUILD | 50 |
3 files changed, 88 insertions, 0 deletions
diff --git a/testing/ttf-merriweather/45-merriweather.conf b/testing/ttf-merriweather/45-merriweather.conf new file mode 100644 index 0000000000..d03a63c45f --- /dev/null +++ b/testing/ttf-merriweather/45-merriweather.conf @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> + + <alias> + <family>Merriweather</family> + <default> + <family>serif</family> + </default> + </alias> + +</fontconfig> diff --git a/testing/ttf-merriweather/90-tt-merriweather.conf b/testing/ttf-merriweather/90-tt-merriweather.conf new file mode 100644 index 0000000000..b715f5261b --- /dev/null +++ b/testing/ttf-merriweather/90-tt-merriweather.conf @@ -0,0 +1,26 @@ +<?xml version='1.0'?> +<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> +<fontconfig> + + <match target="font"> + <test name="force_autohint"> + <bool>false</bool> + </test> + <test name="family"> + <string>Merriweather</string> + </test> + <edit name="antialias" mode="assign"> + <bool>true</bool> + </edit> + <edit name="autohint" mode="assign"> + <bool>false</bool> + </edit> + <edit name="hinting" mode="assign"> + <bool>true</bool> + </edit> + <edit name="hintstyle" mode="assign"> + <const>hintslight</const> + </edit> + </match> + +</fontconfig> diff --git a/testing/ttf-merriweather/APKBUILD b/testing/ttf-merriweather/APKBUILD new file mode 100644 index 0000000000..8a4740dbcd --- /dev/null +++ b/testing/ttf-merriweather/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=ttf-merriweather +pkgver=1.003 +pkgrel=0 +pkgdesc="Merriweather Serif font family by Eben Sorkin." +url="http://sorkintype.com" +arch="noarch" +license="OFL" +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="$pkgname-$pkgver.tar.xz::http://bohoomil.com/src/merriweather_ib.tar.xz + 45-merriweather.conf + 90-tt-merriweather.conf" + +_builddir="$srcdir"/merriweather_ib + +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="dc81d1e5399c7a241f502c193eb73b4c ttf-merriweather-1.003.tar.xz +18f4bb0cf718c19ad323c4d554cfe8de 45-merriweather.conf +2912745859ce25859166ff4e782ccf55 90-tt-merriweather.conf" +sha256sums="1b170c2292ab06951ee9f8f6064632d999ca8a612e1c53863de161c42eb8cce2 ttf-merriweather-1.003.tar.xz +78d5e10ba75623ea6cc0ba2a6c1d7cf098b892f03de5f287aec6ab5b4f084f71 45-merriweather.conf +766a9e3697a735546df29c87dfbd02ff97b646495615a0846b690718acfc7756 90-tt-merriweather.conf" +sha512sums="339e02d3ae0d3ad9933dbea00321635b61e0d2e4be78b38ff9fcf9f81bd29036b15ecfab5e3723e521d8763c6ed497f75ce4062c3626c838f84ea53b1cb10ab1 ttf-merriweather-1.003.tar.xz +12716d17cb06bd76bd554aabf6b3a706c7c83dd322a5f30cb05d7b63eec7873d821ffc436ae0f3354d8e760daff380586c737f03af4ac8d697abb67a8704e08f 45-merriweather.conf +51ec29a81deab79685905ac84e6668b2972c641327c37dcab1efbcfbf40c7f982de0a2dd9d5c89bcb4bd583996363e6e593788142c632bda818421be9c021ced 90-tt-merriweather.conf" |