aboutsummaryrefslogtreecommitdiff
path: root/system/ttf-arphic-uming
diff options
context:
space:
mode:
authorancker.du <ancker.du@gmail.com>2014-06-10 06:38:14 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-06-12 06:51:48 +0700
commit8176a12d6ed8c28cfafacba648835afd48687389 (patch)
tree6d2196faded593c72766e5d23dd468a158d9cd84 /system/ttf-arphic-uming
parent15c6d7579d8357b36c7d56e7a44566544335fe69 (diff)
system/ttf-arphic-uming: Added (Mingti TrueType Font).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ttf-arphic-uming')
-rw-r--r--system/ttf-arphic-uming/25-ttf-arphic-uming-bitmaps.conf33
-rw-r--r--system/ttf-arphic-uming/25-ttf-arphic-uming-render.conf12
-rw-r--r--system/ttf-arphic-uming/35-ttf-arphic-uming-aliases.conf13
-rw-r--r--system/ttf-arphic-uming/41-ttf-arphic-uming.conf41
-rw-r--r--system/ttf-arphic-uming/64-ttf-arphic-uming.conf25
-rw-r--r--system/ttf-arphic-uming/90-ttf-arphic-uming-embolden.conf21
-rw-r--r--system/ttf-arphic-uming/README28
-rw-r--r--system/ttf-arphic-uming/doinst.sh12
-rw-r--r--system/ttf-arphic-uming/slack-desc19
-rw-r--r--system/ttf-arphic-uming/ttf-arphic-uming.SlackBuild77
-rw-r--r--system/ttf-arphic-uming/ttf-arphic-uming.info10
11 files changed, 291 insertions, 0 deletions
diff --git a/system/ttf-arphic-uming/25-ttf-arphic-uming-bitmaps.conf b/system/ttf-arphic-uming/25-ttf-arphic-uming-bitmaps.conf
new file mode 100644
index 0000000000000..ad7a8c75250a2
--- /dev/null
+++ b/system/ttf-arphic-uming/25-ttf-arphic-uming-bitmaps.conf
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+ <match target="font">
+ <test name="family">
+ <string>AR PL UMing CN</string>
+<!--
+ <string>AR PL UMing HK</string>
+ <string>AR PL UMing TW</string>
+ <string>AR PL UMing TW MBE</string>
+-->
+ </test>
+ <edit name="antialias"><bool>false</bool></edit>
+ <edit name="hinting"><bool>true</bool></edit>
+ <edit name="autohint"><bool>false</bool></edit>
+ </match>
+
+ <match target="font">
+ <test name="family">
+ <string>AR PL UMing CN</string>
+<!--
+ <string>AR PL UMing HK</string>
+ <string>AR PL UMing TW</string>
+ <string>AR PL UMing TW MBE</string>
+-->
+ </test>
+ <test name="pixelsize" compare="more_eq"><int>17</int></test>
+ <edit name="antialias" mode="assign"><bool>true</bool></edit>
+ <edit name="hinting" mode="assign"><bool>true</bool></edit>
+ </match>
+
+</fontconfig>
diff --git a/system/ttf-arphic-uming/25-ttf-arphic-uming-render.conf b/system/ttf-arphic-uming/25-ttf-arphic-uming-render.conf
new file mode 100644
index 0000000000000..f962c44551dd0
--- /dev/null
+++ b/system/ttf-arphic-uming/25-ttf-arphic-uming-render.conf
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <match target="font">
+ <test name="family" compare="contains" >
+ <string>AR PL UMing</string>
+ </test>
+ <edit name="globaladvance"><bool>false</bool></edit>
+ <edit name="spacing"><int>90</int></edit>
+ <edit name="minspace"><bool>false</bool></edit>
+ </match>
+</fontconfig>
diff --git a/system/ttf-arphic-uming/35-ttf-arphic-uming-aliases.conf b/system/ttf-arphic-uming/35-ttf-arphic-uming-aliases.conf
new file mode 100644
index 0000000000000..2d803f708c1c4
--- /dev/null
+++ b/system/ttf-arphic-uming/35-ttf-arphic-uming-aliases.conf
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias binding="same">
+ <family>AR PL ShanHeiSun Uni</family>
+ <prefer><family>AR PL UMing HK</family></prefer>
+ </alias>
+
+ <alias binding="same">
+ <family>AR PL ShanHeiSun Uni MBE</family>
+ <prefer><family>AR PL UMing TW MBE</family></prefer>
+ </alias>
+</fontconfig>
diff --git a/system/ttf-arphic-uming/41-ttf-arphic-uming.conf b/system/ttf-arphic-uming/41-ttf-arphic-uming.conf
new file mode 100644
index 0000000000000..f8273191eaa60
--- /dev/null
+++ b/system/ttf-arphic-uming/41-ttf-arphic-uming.conf
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+<!--
+ Serif faces
+ -->
+ <alias>
+ <family>AR PL ShanHeiSun Uni</family>
+ <family>AR PL ShanHeiSun Uni MBE</family>
+ <family>AR PL UMing CN</family>
+ <family>AR PL UMing HK</family>
+ <family>AR PL UMing TW</family>
+ <family>AR PL UMing TW MBE</family>
+ <default><family>serif</family></default>
+ </alias>
+<!--
+ Sans-serif faces
+ -->
+ <alias>
+ <family>AR PL ShanHeiSun Uni</family>
+ <family>AR PL ShanHeiSun Uni MBE</family>
+ <family>AR PL UMing CN</family>
+ <family>AR PL UMing HK</family>
+ <family>AR PL UMing TW</family>
+ <family>AR PL UMing TW MBE</family>
+ <default><family>sans-serif</family></default>
+ </alias>
+<!--
+ Monospace faces
+ -->
+ <alias>
+ <family>AR PL ShanHeiSun Uni</family>
+ <family>AR PL ShanHeiSun Uni MBE</family>
+ <family>AR PL UMing CN</family>
+ <family>AR PL UMing HK</family>
+ <family>AR PL UMing TW</family>
+ <family>AR PL UMing TW MBE</family>
+ <default><family>monospace</family></default>
+ </alias>
+</fontconfig>
diff --git a/system/ttf-arphic-uming/64-ttf-arphic-uming.conf b/system/ttf-arphic-uming/64-ttf-arphic-uming.conf
new file mode 100644
index 0000000000000..f611d1034f09d
--- /dev/null
+++ b/system/ttf-arphic-uming/64-ttf-arphic-uming.conf
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>AR PL UMing HK</family>
+ <family>AR PL UMing CN</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>AR PL UMing HK</family>
+ <family>AR PL UMing CN</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>monospace</family>
+ <prefer>
+ <family>AR PL UMing HK</family>
+ <family>AR PL UMing CN</family>
+ </prefer>
+ </alias>
+</fontconfig>
diff --git a/system/ttf-arphic-uming/90-ttf-arphic-uming-embolden.conf b/system/ttf-arphic-uming/90-ttf-arphic-uming-embolden.conf
new file mode 100644
index 0000000000000..30b19998bb48e
--- /dev/null
+++ b/system/ttf-arphic-uming/90-ttf-arphic-uming-embolden.conf
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+ <match target="font" >
+ <test name="family" compare="contains" >
+ <string>AR PL UMing</string>
+ </test>
+ <!-- check to see if the font is just regular -->
+ <test name="weight" compare="less_eq">
+ <int>100</int>
+ </test>
+ <test compare="more_eq" target="pattern" name="weight" >
+ <int>180</int>
+ </test>
+ <edit mode="assign" name="embolden" >
+ <bool>true</bool>
+ </edit>
+ </match>
+
+</fontconfig>
diff --git a/system/ttf-arphic-uming/README b/system/ttf-arphic-uming/README
new file mode 100644
index 0000000000000..4a848206b6d4e
--- /dev/null
+++ b/system/ttf-arphic-uming/README
@@ -0,0 +1,28 @@
+CJK Unicode font Ming style
+===========================
+
+This font was taken from the from the TrueType fonts generously released by
+Arphic Technologies Taiwan under the Arphic Public License.
+It was modified with Fontforge by Arne Goetje <arne@ubuntu.com> to contain
+both Big5 and GB2312 charsets plus some European characters.
+
+Currently it fully supports the following charsets:
+ISO8859-1,2,3,4,7,9,10,13,14,15
+Big5
+HKSCS-2004
+GB2312-80
+Bopomofo Extensions for Hakka, Minnan (Unicode 5.0) and their MBE variants.
+
+Partly support is implemented for:
+CNS 11643
+GBK
+GB18030
+Japanese
+Korean
+
+This font is under development, new glyphs for the partly supported charsets
+are constantly added.
+
+This font is a TrueType Collection containing 4 flavors, namely
+CN, HK, TW and TW MBE. Please see NEWS, KNOWN_ISSUES, FONTLOG and TODO for
+details.
diff --git a/system/ttf-arphic-uming/doinst.sh b/system/ttf-arphic-uming/doinst.sh
new file mode 100644
index 0000000000000..38d432bcc5166
--- /dev/null
+++ b/system/ttf-arphic-uming/doinst.sh
@@ -0,0 +1,12 @@
+# There's no need to chroot and do this during initial
+# install, since there is a post-install script that
+# does the same thing, saving time.
+# Update X font indexes and the font cache:
+if [ -x /usr/bin/mkfontdir ]; then
+ /usr/bin/mkfontscale /usr/share/fonts/TTF
+ /usr/bin/mkfontdir /usr/share/fonts/TTF
+fi
+
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache /usr/share/fonts/TTF
+fi
diff --git a/system/ttf-arphic-uming/slack-desc b/system/ttf-arphic-uming/slack-desc
new file mode 100644
index 0000000000000..b43191ac7c0fd
--- /dev/null
+++ b/system/ttf-arphic-uming/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+ttf-arphic-uming: ttf-arphic-uming (Unicode Mingti (printed) TrueType Font)
+ttf-arphic-uming:
+ttf-arphic-uming: Currently contains glyphs for * Big5 * GB2312-80 * HKSCS-2004
+ttf-arphic-uming: * ISO8859-1,2,3,4,9,10,13,14,15
+ttf-arphic-uming: * Bopomofo Extended for Minnan and Hakka
+ttf-arphic-uming: The Mingti font contains Firefly's bitmap characters for
+ttf-arphic-uming: pixelsizes 11, 12, 13, 14, 15 and 16.
+ttf-arphic-uming: Currently only Big5 and GB2312 are covered by those.
+ttf-arphic-uming:
+ttf-arphic-uming: Project URL: http://www.freedesktop.org/wiki/Software/CJKUnifonts
+ttf-arphic-uming:
diff --git a/system/ttf-arphic-uming/ttf-arphic-uming.SlackBuild b/system/ttf-arphic-uming/ttf-arphic-uming.SlackBuild
new file mode 100644
index 0000000000000..988ad7de5baa9
--- /dev/null
+++ b/system/ttf-arphic-uming/ttf-arphic-uming.SlackBuild
@@ -0,0 +1,77 @@
+#!/bin/sh
+
+# Slackware build script for ttf-arphic-uming
+
+# Copyright 2014 ancker.du <ancker.du@gmail.com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=ttf-arphic-uming
+VERSION=${VERSION:-0.2.20080216.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+ARCH=noarch
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+mkdir -p $PRGNAM
+rm -rf $PRGNAM-$VERSION
+
+tar xvf $CWD/$PRGNAM\_${VERSION}.orig.tar.gz -C $PRGNAM
+mv $PRGNAM $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p $PKG/usr/share/fonts/TTF
+cp -a *.ttc $PKG/usr/share/fonts/TTF
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CONTRIBUTERS FONTLOG Font_Comparison_ShanHeiSun_UMing.odt Font_Comparison_ShanHeiSun_UMing.pdf INSTALL \
+ KNOWN_ISSUES NEWS README README.Bitmap license $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/etc/fonts/conf.{d,avail}
+cat $CWD/25-ttf-arphic-uming-bitmaps.conf > $PKG/etc/fonts/conf.avail/25-ttf-arphic-uming-bitmaps.conf
+cat $CWD/25-ttf-arphic-uming-render.conf > $PKG/etc/fonts/conf.avail/25-ttf-arphic-uming-render.conf
+cat $CWD/35-ttf-arphic-uming-aliases.conf > $PKG/etc/fonts/conf.avail/35-ttf-arphic-uming-aliases.conf
+cat $CWD/41-ttf-arphic-uming.conf > $PKG/etc/fonts/conf.avail/41-ttf-arphic-uming.conf
+cat $CWD/64-ttf-arphic-uming.conf > $PKG/etc/fonts/conf.avail/64-ttf-arphic-uming.conf
+cat $CWD/90-ttf-arphic-uming-embolden.conf > $PKG/etc/fonts/conf.avail/90-ttf-arphic-uming-embolden.conf
+cd $PKG/etc/fonts/conf.d && ln -sf ../conf.avail/25-ttf-arphic-uming-bitmaps.conf && ln -sf ../conf.avail/25-ttf-arphic-uming-render.conf && ln -sf ../conf.avail/35-ttf-arphic-uming-aliases.conf && ln -sf ../conf.avail/41-ttf-arphic-uming.conf && ln -sf ../conf.avail/64-ttf-arphic-uming.conf && ln -sf ../conf.avail/90-ttf-arphic-uming-embolden.conf
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/ttf-arphic-uming/ttf-arphic-uming.info b/system/ttf-arphic-uming/ttf-arphic-uming.info
new file mode 100644
index 0000000000000..db47ab5e5571a
--- /dev/null
+++ b/system/ttf-arphic-uming/ttf-arphic-uming.info
@@ -0,0 +1,10 @@
+PRGNAM="ttf-arphic-uming"
+VERSION="0.2.20080216.1"
+HOMEPAGE="http://www.freedesktop.org/wiki/Software/CJKUnifonts/"
+DOWNLOAD="http://tw.archive.ubuntu.com/ubuntu/pool/main/t/ttf-arphic-uming/ttf-arphic-uming_0.2.20080216.1.orig.tar.gz"
+MD5SUM="d219fcaf953f3eb1889399955a00379f"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="ancker.du"
+EMAIL="ancker.du@gmail.com"