diff options
author | Kai Knoblich <kai@FreeBSD.org> | 2019-02-28 18:15:22 +0000 |
---|---|---|
committer | Kai Knoblich <kai@FreeBSD.org> | 2019-02-28 18:15:22 +0000 |
commit | 6eb9a595b6e96c086c361187bac2d182862604e0 (patch) | |
tree | 8fb97feac41398cb4d48316a4fb0c224a26f8fec | |
parent | 40e7d3c6ddbb16e1b9dc769cd8aab97672b0dd01 (diff) | |
download | freebsd-ports-6eb9a595b6e96c086c361187bac2d182862604e0.zip |
New port: chinese/sourcehanserif-tc-otf: Traditional chinese font by Adobe designed for user interfaces
Source Han Serif: The second Pan-CJK typeface family from Adobe
This is Source Han Serif TC/TW, which supports all four variants in this family
but prioritizes Traditional Chinese Hanzi over other three.
"Source Han Serif supports four different East Asian languages---Simplified
Chinese, Traditional Chinese, Japanese, and Korean---and the 65,535 glyphs in
each of its seven weights are designed to work together with a consistent design
that emphasizes shared elements between the languages while honoring the
diversity of each. Also included is a rich set of Western glyphs supporting the
Latin, Greek, and Cyrillic scripts, which were derived from Source Serif."
--- The Typekit, Adobe
WWW: https://github.com/adobe-fonts/source-han-serif
PR: 232195
Submitted by: Hyun Hwang <hyun@caffeinated.codes>
Approved by: miwi (mentor)
Differential Revision: https://reviews.freebsd.org/D19384
-rw-r--r-- | chinese/Makefile | 1 | ||||
-rw-r--r-- | chinese/sourcehanserif-tc-otf/Makefile | 42 | ||||
-rw-r--r-- | chinese/sourcehanserif-tc-otf/distinfo | 3 | ||||
-rw-r--r-- | chinese/sourcehanserif-tc-otf/files/pkg-message.in | 7 | ||||
-rw-r--r-- | chinese/sourcehanserif-tc-otf/pkg-descr | 14 | ||||
-rw-r--r-- | chinese/sourcehanserif-tc-otf/pkg-plist | 14 |
6 files changed, 81 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile index 103df30c6d6d..39d3ef6677c8 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -102,6 +102,7 @@ SUBDIR += scim-fcitx SUBDIR += scim-pinyin SUBDIR += scim-tables + SUBDIR += sourcehanserif-tc-otf SUBDIR += sunpinyin SUBDIR += tin SUBDIR += tintin++ diff --git a/chinese/sourcehanserif-tc-otf/Makefile b/chinese/sourcehanserif-tc-otf/Makefile new file mode 100644 index 000000000000..eb1c8948734e --- /dev/null +++ b/chinese/sourcehanserif-tc-otf/Makefile @@ -0,0 +1,42 @@ +# $FreeBSD$ + +PORTNAME= sourcehanserif +PORTVERSION= 1.001 +DISTVERSIONSUFFIX= R +CATEGORIES= chinese x11-fonts +PKGNAMESUFFIX= -tc-otf +# Note: the following PKGNAMEPREFIX is here only for self-documenting purpose; +# actual prefixing is done by the `chinese' category itself. +#PKGNAMEPREFIX= zh- + +MAINTAINER= hyun@caffeinated.codes +COMMENT= Traditional Chinese font by Adobe designed for user interfaces + +LICENSE= OFL11 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= fonts +USE_GITHUB= yes +GH_ACCOUNT= adobe-fonts +GH_PROJECT= source-han-serif + +NO_ARCH= yes +NO_BUILD= yes +SUB_FILES= pkg-message + +OPTIONS_SINGLE= TYPE +OPTIONS_SINGLE_TYPE= FULL SUBSET +OPTIONS_DEFAULT= FULL +OPTIONS_SUB= yes + +FULL_DESC= Install the full font (can display all CJK) +SUBSET_DESC= Install the subset font (can display TC only) + +FULL_VARS= FONTNAME=SourceHanSerifTC SRCFONTSDIR=OTF/TraditionalChinese +SUBSET_VARS= FONTNAME=SourceHanSerifTW SRCFONTSDIR=SubsetOTF/TW + +do-install: + @${MKDIR} ${STAGEDIR}${FONTSDIR} + ${INSTALL_DATA} ${WRKSRC}/${SRCFONTSDIR}/*.otf ${STAGEDIR}${FONTSDIR} + +.include <bsd.port.mk> diff --git a/chinese/sourcehanserif-tc-otf/distinfo b/chinese/sourcehanserif-tc-otf/distinfo new file mode 100644 index 000000000000..7aacac6c7c6c --- /dev/null +++ b/chinese/sourcehanserif-tc-otf/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1539298488 +SHA256 (adobe-fonts-source-han-serif-1.001R_GH0.tar.gz) = 629fda62a70d78920320b92691a8a2d80966cc70c62d6525e6ec293c14a19c95 +SIZE (adobe-fonts-source-han-serif-1.001R_GH0.tar.gz) = 1972977717 diff --git a/chinese/sourcehanserif-tc-otf/files/pkg-message.in b/chinese/sourcehanserif-tc-otf/files/pkg-message.in new file mode 100644 index 000000000000..2e8f2addd159 --- /dev/null +++ b/chinese/sourcehanserif-tc-otf/files/pkg-message.in @@ -0,0 +1,7 @@ + +You can start using the font by following this instruction: + +Add the following line to the "Files" section of your X.org configuration file: + + FontPath "%%FONTSDIR%%/" + diff --git a/chinese/sourcehanserif-tc-otf/pkg-descr b/chinese/sourcehanserif-tc-otf/pkg-descr new file mode 100644 index 000000000000..9193b5f65862 --- /dev/null +++ b/chinese/sourcehanserif-tc-otf/pkg-descr @@ -0,0 +1,14 @@ +Source Han Serif: The second Pan-CJK typeface family from Adobe + +This is Source Han Serif TC/TW, which supports all four variants in this family +but prioritizes Traditional Chinese Hanzi over other three. + +"Source Han Serif supports four different East Asian languages---Simplified +Chinese, Traditional Chinese, Japanese, and Korean---and the 65,535 glyphs in +each of its seven weights are designed to work together with a consistent design +that emphasizes shared elements between the languages while honoring the +diversity of each. Also included is a rich set of Western glyphs supporting the +Latin, Greek, and Cyrillic scripts, which were derived from Source Serif." +--- The Typekit, Adobe + +WWW: https://github.com/adobe-fonts/source-han-serif diff --git a/chinese/sourcehanserif-tc-otf/pkg-plist b/chinese/sourcehanserif-tc-otf/pkg-plist new file mode 100644 index 000000000000..23b164efec9b --- /dev/null +++ b/chinese/sourcehanserif-tc-otf/pkg-plist @@ -0,0 +1,14 @@ +%%FULL%%%%FONTSDIR%%/SourceHanSerifTC-Bold.otf +%%FULL%%%%FONTSDIR%%/SourceHanSerifTC-ExtraLight.otf +%%FULL%%%%FONTSDIR%%/SourceHanSerifTC-Heavy.otf +%%FULL%%%%FONTSDIR%%/SourceHanSerifTC-Light.otf +%%FULL%%%%FONTSDIR%%/SourceHanSerifTC-Medium.otf +%%FULL%%%%FONTSDIR%%/SourceHanSerifTC-Regular.otf +%%FULL%%%%FONTSDIR%%/SourceHanSerifTC-SemiBold.otf +%%SUBSET%%%%FONTSDIR%%/SourceHanSerifTW-Bold.otf +%%SUBSET%%%%FONTSDIR%%/SourceHanSerifTW-ExtraLight.otf +%%SUBSET%%%%FONTSDIR%%/SourceHanSerifTW-Heavy.otf +%%SUBSET%%%%FONTSDIR%%/SourceHanSerifTW-Light.otf +%%SUBSET%%%%FONTSDIR%%/SourceHanSerifTW-Medium.otf +%%SUBSET%%%%FONTSDIR%%/SourceHanSerifTW-Regular.otf +%%SUBSET%%%%FONTSDIR%%/SourceHanSerifTW-SemiBold.otf |