From 10464a2cbffe83e5104736e97ab55203d70edfae Mon Sep 17 00:00:00 2001 From: Kai Knoblich Date: Thu, 28 Feb 2019 18:22:18 +0000 Subject: New port: chinese/sourcehanserif-sc-otf Simplified Chinese font by Adobe designed for user interfaces Source Han Serif: The second Pan-CJK typeface family from Adobe This is Source Han Serif SC/CN, which supports all four variants in this family but prioritizes Simplified 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: 232462 Submitted by: Hyun Hwang Approved by: miwi (mentor) Differential Revision: https://reviews.freebsd.org/D19383 --- chinese/Makefile | 1 + chinese/sourcehanserif-sc-otf/Makefile | 42 ++++++++++++++++++++++ chinese/sourcehanserif-sc-otf/distinfo | 3 ++ chinese/sourcehanserif-sc-otf/files/pkg-message.in | 7 ++++ chinese/sourcehanserif-sc-otf/pkg-descr | 14 ++++++++ chinese/sourcehanserif-sc-otf/pkg-plist | 14 ++++++++ 6 files changed, 81 insertions(+) create mode 100644 chinese/sourcehanserif-sc-otf/Makefile create mode 100644 chinese/sourcehanserif-sc-otf/distinfo create mode 100644 chinese/sourcehanserif-sc-otf/files/pkg-message.in create mode 100644 chinese/sourcehanserif-sc-otf/pkg-descr create mode 100644 chinese/sourcehanserif-sc-otf/pkg-plist (limited to 'chinese') diff --git a/chinese/Makefile b/chinese/Makefile index 39d3ef6677c8..53a7513b7df9 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -102,6 +102,7 @@ SUBDIR += scim-fcitx SUBDIR += scim-pinyin SUBDIR += scim-tables + SUBDIR += sourcehanserif-sc-otf SUBDIR += sourcehanserif-tc-otf SUBDIR += sunpinyin SUBDIR += tin diff --git a/chinese/sourcehanserif-sc-otf/Makefile b/chinese/sourcehanserif-sc-otf/Makefile new file mode 100644 index 000000000000..ecea4e036f7b --- /dev/null +++ b/chinese/sourcehanserif-sc-otf/Makefile @@ -0,0 +1,42 @@ +# $FreeBSD$ + +PORTNAME= sourcehanserif +PORTVERSION= 1.001 +DISTVERSIONSUFFIX= R +CATEGORIES= chinese x11-fonts +PKGNAMESUFFIX= -sc-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= Simplified 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 SC only) + +FULL_VARS= FONTNAME=SourceHanSerifSC SRCFONTSDIR=OTF/SimplifiedChinese +SUBSET_VARS= FONTNAME=SourceHanSerifCN SRCFONTSDIR=SubsetOTF/CN + +do-install: + @${MKDIR} ${STAGEDIR}${FONTSDIR} + ${INSTALL_DATA} ${WRKSRC}/${SRCFONTSDIR}/*.otf ${STAGEDIR}${FONTSDIR} + +.include diff --git a/chinese/sourcehanserif-sc-otf/distinfo b/chinese/sourcehanserif-sc-otf/distinfo new file mode 100644 index 000000000000..7aacac6c7c6c --- /dev/null +++ b/chinese/sourcehanserif-sc-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-sc-otf/files/pkg-message.in b/chinese/sourcehanserif-sc-otf/files/pkg-message.in new file mode 100644 index 000000000000..2e8f2addd159 --- /dev/null +++ b/chinese/sourcehanserif-sc-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-sc-otf/pkg-descr b/chinese/sourcehanserif-sc-otf/pkg-descr new file mode 100644 index 000000000000..43926857aebf --- /dev/null +++ b/chinese/sourcehanserif-sc-otf/pkg-descr @@ -0,0 +1,14 @@ +Source Han Serif: The second Pan-CJK typeface family from Adobe + +This is Source Han Serif SC/CN, which supports all four variants in this family +but prioritizes Simplified 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-sc-otf/pkg-plist b/chinese/sourcehanserif-sc-otf/pkg-plist new file mode 100644 index 000000000000..96f21c88dec2 --- /dev/null +++ b/chinese/sourcehanserif-sc-otf/pkg-plist @@ -0,0 +1,14 @@ +%%FULL%%%%FONTSDIR%%/SourceHanSerifSC-Bold.otf +%%FULL%%%%FONTSDIR%%/SourceHanSerifSC-ExtraLight.otf +%%FULL%%%%FONTSDIR%%/SourceHanSerifSC-Heavy.otf +%%FULL%%%%FONTSDIR%%/SourceHanSerifSC-Light.otf +%%FULL%%%%FONTSDIR%%/SourceHanSerifSC-Medium.otf +%%FULL%%%%FONTSDIR%%/SourceHanSerifSC-Regular.otf +%%FULL%%%%FONTSDIR%%/SourceHanSerifSC-SemiBold.otf +%%SUBSET%%%%FONTSDIR%%/SourceHanSerifCN-Bold.otf +%%SUBSET%%%%FONTSDIR%%/SourceHanSerifCN-ExtraLight.otf +%%SUBSET%%%%FONTSDIR%%/SourceHanSerifCN-Heavy.otf +%%SUBSET%%%%FONTSDIR%%/SourceHanSerifCN-Light.otf +%%SUBSET%%%%FONTSDIR%%/SourceHanSerifCN-Medium.otf +%%SUBSET%%%%FONTSDIR%%/SourceHanSerifCN-Regular.otf +%%SUBSET%%%%FONTSDIR%%/SourceHanSerifCN-SemiBold.otf -- cgit v1.2.3