diff options
author | Eric Hameleers <alien@slackware.com> | 2018-08-12 13:00:07 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-08-12 13:00:07 +0200 |
commit | 47cbca75a4f46de6e7fe331c6f1ef46df7131e3c (patch) | |
tree | c109038c7bd246f83fcbfc7d92b49126da0f6b03 /deps | |
parent | 1eda1680f3b745317459799c51f78b6a917a9ec0 (diff) | |
download | ktown-47cbca75a4f46de6e7fe331c6f1ef46df7131e3c.tar.gz ktown-47cbca75a4f46de6e7fe331c6f1ef46df7131e3c.tar.xz |
noto-cjk-font-ttf: add a fontconfig file
Diffstat (limited to 'deps')
-rw-r--r-- | deps/noto-cjk-font-ttf/70-noto-cjk.conf | 147 | ||||
-rwxr-xr-x | deps/noto-cjk-font-ttf/noto-cjk-font-ttf.SlackBuild | 9 |
2 files changed, 153 insertions, 3 deletions
diff --git a/deps/noto-cjk-font-ttf/70-noto-cjk.conf b/deps/noto-cjk-font-ttf/70-noto-cjk.conf new file mode 100644 index 0000000..c1052bb --- /dev/null +++ b/deps/noto-cjk-font-ttf/70-noto-cjk.conf @@ -0,0 +1,147 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> + <match target="pattern"> + <test name="lang"> + <string>ja</string> + </test> + <test name="family"> + <string>serif</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Serif CJK JP</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>ko</string> + </test> + <test name="family"> + <string>serif</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Serif CJK KR</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>zh-cn</string> + </test> + <test name="family"> + <string>serif</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Serif CJK SC</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>zh-tw</string> + </test> + <test name="family"> + <string>serif</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Serif CJK TC</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>ja</string> + </test> + <test name="family"> + <string>sans-serif</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Sans CJK JP</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>ko</string> + </test> + <test name="family"> + <string>sans-serif</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Sans CJK KR</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>zh-cn</string> + </test> + <test name="family"> + <string>sans-serif</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Sans CJK SC</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>zh-tw</string> + </test> + <test name="family"> + <string>sans-serif</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Sans CJK TC</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>ja</string> + </test> + <test name="family"> + <string>monospace</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Sans Mono CJK JP</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>ko</string> + </test> + <test name="family"> + <string>monospace</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Sans Mono CJK KR</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>zh-cn</string> + </test> + <test name="family"> + <string>monospace</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Sans Mono CJK SC</string> + </edit> + </match> + + <match target="pattern"> + <test name="lang"> + <string>zh-tw</string> + </test> + <test name="family"> + <string>monospace</string> + </test> + <edit name="family" mode="prepend"> + <string>Noto Sans Mono CJK TC</string> + </edit> + </match> +</fontconfig> diff --git a/deps/noto-cjk-font-ttf/noto-cjk-font-ttf.SlackBuild b/deps/noto-cjk-font-ttf/noto-cjk-font-ttf.SlackBuild index a3a761c..72eaec5 100755 --- a/deps/noto-cjk-font-ttf/noto-cjk-font-ttf.SlackBuild +++ b/deps/noto-cjk-font-ttf/noto-cjk-font-ttf.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh -# Copyright 2015 Eric Hameleers, Eindhoven, NL -# Copyright 2015 Patrick J. Volkerding, Sebeka, MN USA +# Copyright 2015, 2018 Eric Hameleers, Eindhoven, NL +# Copyright 2015,2018 Patrick J. Volkerding, Sebeka, MN USA # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -28,7 +28,7 @@ PRGNAM=noto-cjk-font-ttf SRCNAM=NotoSansCJK VERSION=${VERSION:-"1.004"} ARCH=noarch -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} CWD=$(pwd) TMP=${TMP:-/tmp} @@ -49,6 +49,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Add a font configuration file (taken from Arch repository): +install -Dm644 $CWD/70-noto-cjk.conf -t $PKG/etc/fonts/conf.avail + # Post-install script: mkdir -p $PKG/install cat << EOT > $PKG/install/doinst.sh |