summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO27
-rw-r--r--40-wqy-zenhei.conf19
-rw-r--r--43-wqy-zenhei-sharp.conf20
-rw-r--r--65-wqy-zenhei.conf27
-rw-r--r--90-tt-wqy-zenhei.conf44
-rw-r--r--PKGBUILD58
6 files changed, 195 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e77bd89c0a9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+# Generated by mksrcinfo v8
+# Thu May 11 03:12:54 UTC 2017
+pkgbase = ttf-wqy-zenhei-ibx
+ pkgdesc = A Hei Ti Style (sans-serif) Chinese Outline Font.
+ pkgver = 0.9.45
+ pkgrel = 7
+ url = http://wenq.org/enindex.cgi
+ arch = any
+ groups = infinality-bundle-fonts-extra
+ license = GPL2,custom:font embedding exception
+ depends = fontconfig
+ provides = wqy-zenhei
+ conflicts = wqy-zenhei
+ replaces = wqy-zenhei
+ source = http://downloads.sourceforge.net/project/wqy/wqy-zenhei/0.9.45%20%28Fighting-state%20RC1%29/wqy-zenhei-0.9.45.tar.gz
+ source = 40-wqy-zenhei.conf
+ source = 43-wqy-zenhei-sharp.conf
+ source = 65-wqy-zenhei.conf
+ source = 90-tt-wqy-zenhei.conf
+ md5sums = 4c6c3f4e902dd5ee0a121e8c41d040bd
+ md5sums = 36d003e12c7ad99640db7723fe60f44e
+ md5sums = 8c76b4572df0c41462f16c522580687c
+ md5sums = 98cbaf37932c24282d2ba0f5222f83b4
+ md5sums = ffab9f8da7a9ab723395bcd6efde376f
+
+pkgname = ttf-wqy-zenhei-ibx
+
diff --git a/40-wqy-zenhei.conf b/40-wqy-zenhei.conf
new file mode 100644
index 00000000000..d1f04eea246
--- /dev/null
+++ b/40-wqy-zenhei.conf
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+ <alias>
+ <family>WenQuanYi Zen Hei</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+
+ <alias>
+ <family>WenQuanYi Zen Hei Mono</family>
+ <default>
+ <family>monospace</family>
+ </default>
+ </alias>
+
+</fontconfig>
diff --git a/43-wqy-zenhei-sharp.conf b/43-wqy-zenhei-sharp.conf
new file mode 100644
index 00000000000..f6900de04e7
--- /dev/null
+++ b/43-wqy-zenhei-sharp.conf
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>DejaVu Serif</family>
+ <family>WenQuanYi Zen Hei Sharp</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>DejaVu Sans</family>
+ <family>WenQuanYi Zen Hei Sharp</family>
+ </prefer>
+ </alias>
+
+</fontconfig>
diff --git a/65-wqy-zenhei.conf b/65-wqy-zenhei.conf
new file mode 100644
index 00000000000..8bf922e0cbf
--- /dev/null
+++ b/65-wqy-zenhei.conf
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>DejaVu Serif</family>
+ <family>WenQuanYi Zen Hei</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>DejaVu Sans</family>
+ <family>WenQuanYi Zen Hei</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>monospace</family>
+ <prefer>
+ <family>DejaVu Sans Mono</family>
+ <family>WenQuanYi Zen Hei Mono</family>
+ </prefer>
+ </alias>
+
+</fontconfig>
diff --git a/90-tt-wqy-zenhei.conf b/90-tt-wqy-zenhei.conf
new file mode 100644
index 00000000000..d2e6d1e23fb
--- /dev/null
+++ b/90-tt-wqy-zenhei.conf
@@ -0,0 +1,44 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+ <match target="font">
+ <test qual="any" name="family">
+ <string>WenQuanYi Zen Hei</string>
+ </test>
+ <test qual="any" name="family">
+ <string>文泉驿正黑</string>
+ </test>
+ <test qual="any" name="family">
+ <string>文泉驛正黑</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>
+ <!--edit name="rh_prefer_bitmaps" mode="assign">
+ <bool>false</bool>
+ </edit>
+ <edit name="rgba" mode="assign">
+ <const>none</const>
+ </edit-->
+ <edit name="globaladvance">
+ <bool>false</bool>
+ </edit>
+ <edit name="spacing">
+ <int>0</int>
+ </edit>
+ <edit name="embeddedbitmap">
+ <bool>false</bool>
+ </edit>
+ </match>
+
+</fontconfig>
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bd1e6517afe
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,58 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: JJDaNiMoTh <jjdanimoth.aur@gmail.com>
+# Contributor: zlowly <zlowly [at] archlinux.org>
+# Contributor: bohoomil <@zoho.com>
+
+pkgname=ttf-wqy-zenhei-ibx
+_name=wqy-zenhei
+pkgver=0.9.45
+pkgrel=7
+pkgdesc="A Hei Ti Style (sans-serif) Chinese Outline Font."
+arch=('any')
+license=(GPL2,custom:"font embedding exception")
+url="http://wenq.org/enindex.cgi"
+depends=('fontconfig')
+groups=('infinality-bundle-fonts-extra')
+conflicts=('wqy-zenhei')
+provides=('wqy-zenhei')
+replaces=('wqy-zenhei')
+source=("http://downloads.sourceforge.net/project/wqy/${_name}/${pkgver}%20%28Fighting-state%20RC1%29/${_name}-${pkgver}.tar.gz"
+ 40-wqy-zenhei.conf
+ 43-wqy-zenhei-sharp.conf
+ 65-wqy-zenhei.conf
+ 90-tt-wqy-zenhei.conf)
+md5sums=('4c6c3f4e902dd5ee0a121e8c41d040bd'
+ '36d003e12c7ad99640db7723fe60f44e'
+ '8c76b4572df0c41462f16c522580687c'
+ '98cbaf37932c24282d2ba0f5222f83b4'
+ 'ffab9f8da7a9ab723395bcd6efde376f')
+
+build() {
+ cd "${_name}"
+
+ grep README -e "GPL v2 license with font embedding exception" -A 12 >| FONTEXCEPTION
+}
+
+package() {
+ cd "${_name}"
+
+ install -D -m644 FONTEXCEPTION \
+ "${pkgdir}"/usr/share/licenses/"${pkgname}"/COPYING
+
+ install -D -m644 "${_name}.ttc" "${pkgdir}/usr/share/fonts/${pkgname}/${_name}.ttc"
+
+ cd "${srcdir}"
+ install -D -m644 40-wqy-zenhei.conf \
+ "${pkgdir}"/etc/fonts/conf.avail/40-wqy-zenhei.conf
+ install -D -m644 43-wqy-zenhei-sharp.conf \
+ "${pkgdir}"/etc/fonts/conf.avail/43-wqy-zenhei.conf
+ install -D -m644 65-wqy-zenhei.conf \
+ "${pkgdir}"/etc/fonts/conf.avail/65-wqy-zenhei.conf
+ install -D -m644 90-tt-wqy-zenhei.conf \
+ "${pkgdir}"/etc/fonts/conf.avail/90-tt-wqy-zenhei.conf
+
+ install -m755 -d "${pkgdir}"/etc/fonts/conf.d
+ cd "${pkgdir}"/etc/fonts/conf.d
+ ln -s ../conf.avail/40-wqy-zenhei.conf .
+ ln -s ../conf.avail/90-tt-wqy-zenhei.conf .
+}