diff options
Diffstat (limited to 'media-fonts/noto-cjk')
-rw-r--r-- | media-fonts/noto-cjk/Manifest | 3 | ||||
-rw-r--r-- | media-fonts/noto-cjk/files/70-noto-cjk.conf | 147 | ||||
-rw-r--r-- | media-fonts/noto-cjk/metadata.xml | 4 | ||||
-rw-r--r-- | media-fonts/noto-cjk/noto-cjk-20211026.ebuild | 26 |
4 files changed, 180 insertions, 0 deletions
diff --git a/media-fonts/noto-cjk/Manifest b/media-fonts/noto-cjk/Manifest new file mode 100644 index 0000000..1e90e07 --- /dev/null +++ b/media-fonts/noto-cjk/Manifest @@ -0,0 +1,3 @@ +DIST NotoSansCJK-VF.otf.ttc 32682580 BLAKE2B c52d4edad19be495f48a7f7d5481a284645c3cd728fc810f945b49f630a24d41e442d4e1167519c35545c7ec29668d41e33a120d02b705cf220ef3029d2cf20c SHA512 b44200c0b8149004150cba40204af489b1275310f9b574727bebf13e4c3036a99447636a158af1b660a49049325cc1c803ea02b110fa1f58b666808b08dbfd52 +DIST NotoSansMonoCJK-VF.otf.ttc 31908332 BLAKE2B 542face4ef7f0b9bfcd19ec637589c6a255a045d0fc19efebc84a567c561fa4c25c253bf4cf486cfb2db5c4e80bf69b196dff49a8fc2c20e80182aaef0cc7003 SHA512 840c83fd069c83f7475a12448dfb0bfc6689d5227a7e390e9b7de52b427632f5b1c85f53084d4bd2d53ec3e38d5629e0455242d89ac98fbaf3d0c24fe8ba723b +DIST NotoSerifCJK-VF.otf.ttc 56784876 BLAKE2B 31304b62bc3628a27ae9c1c3703177f2e7b64857e4422ec05d5c03e1959d1795416608d4bb39cc8a5c1e6bf02bc789b2399d1e0abcdfcae4ff1a40373171a0fd SHA512 6808964ecc5b64c492712ca22538ce076ac5df0807ec7cef4fd62258df5a2911dac7652a8c39f35d0f3889e948a532e8111fa7473adbf44f34992f8379035950 diff --git a/media-fonts/noto-cjk/files/70-noto-cjk.conf b/media-fonts/noto-cjk/files/70-noto-cjk.conf new file mode 100644 index 0000000..c1052bb --- /dev/null +++ b/media-fonts/noto-cjk/files/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/media-fonts/noto-cjk/metadata.xml b/media-fonts/noto-cjk/metadata.xml new file mode 100644 index 0000000..7c900b1 --- /dev/null +++ b/media-fonts/noto-cjk/metadata.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +</pkgmetadata> diff --git a/media-fonts/noto-cjk/noto-cjk-20211026.ebuild b/media-fonts/noto-cjk/noto-cjk-20211026.ebuild new file mode 100644 index 0000000..82967f4 --- /dev/null +++ b/media-fonts/noto-cjk/noto-cjk-20211026.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +COMMIT="9f7f3c38eab63e1d1fddd8d50937fe4f1eacdb1d" +inherit font + +DESCRIPTION="Google's CJK font family" +HOMEPAGE="https://www.google.com/get/noto/ https://github.com/googlefonts/noto-cjk" +SRC_URI=" + https://github.com/googlefonts/noto-cjk/raw/${COMMIT}/Sans/Variable/OTC/NotoSansCJK-VF.otf.ttc + https://github.com/googlefonts/noto-cjk/raw/${COMMIT}/Sans/Variable/OTC/NotoSansMonoCJK-VF.otf.ttc + https://github.com/googlefonts/noto-cjk/raw/${COMMIT}/Serif/Variable/OTC/NotoSerifCJK-VF.otf.ttc +" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="OFL-1.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="" + +S=${DISTDIR} + +FONT_CONF=( "${FILESDIR}/70-noto-cjk.conf" ) # From ArchLinux +FONT_SUFFIX="ttc" |