Hi,

Here's an update to the latest tagged release of Noto CJK.

I've switched the port to OpenType variable fonts only, meaning all
glyph variants (Traditional Chinese, Simplified Chinese, Japanese, etc.)
and font weights are contained within a single .ttc for serif and for
sans-serif. This reduces the size of the package from 228 MB to 47 MB.

This link demonstrates the glyph variants in Chrome:

https://en.wikipedia.org/wiki/Han_unification#Examples_of_language-dependent_glyphs

The fonts also display in LibreOffice including bold and regular weight.
I couldn't figure out how to trigger glyph variants in LO though.

Tests appreciated, especially from regular users of CJK fonts.

ok?


Index: Makefile
===================================================================
RCS file: /cvs/ports/fonts/noto/cjk/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile    16 Mar 2022 13:21:21 -0000      1.6
+++ Makefile    24 Mar 2022 10:38:02 -0000
@@ -2,16 +2,19 @@ COMMENT =             east asian fonts for the noto
 
 NOTO_PROJECT =         cjk
 
-V =                    2.001
-GH_TAGNAME =           NotoSansV$V
-REVISION =             0
+V =                    20220127
 
 BUILD_DEPENDS =                archivers/unzip
 
+MASTER_SITES0 =                
https://github.com/googlefonts/noto-cjk/releases/download/Sans2.004/
+MASTER_SITES1 =                
https://github.com/googlefonts/noto-cjk/releases/download/Serif2.001/
+DISTFILES =            01_NotoSansCJK-OTF-VF.zip:0 \
+                       02_NotoSerifCJK-OTF-VF.zip:1
+DIST_SUBDIR =          noto-cjk-$V
+WRKDIST =              ${WRKDIR}
+
 do-install:
        ${INSTALL_DATA_DIR} ${NOTO_INSTALLDIR}
-       ${INSTALL_DATA} ${WRKDIST}/NotoSerifCJK-*.ttc ${NOTO_INSTALLDIR}
-       cd ${NOTO_INSTALLDIR} && unzip ${WRKDIST}/NotoSansCJK.ttc.zip
-       rm -rf ${NOTO_INSTALLDIR}/__MACOSX
+       ${INSTALL_DATA} ${WRKDIST}/Variable/OTC/*.ttc ${NOTO_INSTALLDIR}
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/fonts/noto/cjk/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo    10 May 2019 04:14:13 -0000      1.2
+++ distinfo    24 Mar 2022 10:38:02 -0000
@@ -1,2 +1,4 @@
-SHA256 (noto-cjk-2.001.tar.gz) = OxiFmz7+OsNtjVJz6TzAe2GpSArAnFtS7fTdiqq3QYc=
-SIZE (noto-cjk-2.001.tar.gz) = 1882149917
+SHA256 (noto-cjk-20220127/01_NotoSansCJK-OTF-VF.zip) = 
0eFDJzzHrTe3EM2w0YijJVPO6c/WASnc7p1Z+R48a0g=
+SHA256 (noto-cjk-20220127/02_NotoSerifCJK-OTF-VF.zip) = 
vt64Yib+/V/Wm1TtRmBBWGGGT4ecC32gix/XHKNaeLA=
+SIZE (noto-cjk-20220127/01_NotoSansCJK-OTF-VF.zip) = 239547497
+SIZE (noto-cjk-20220127/02_NotoSerifCJK-OTF-VF.zip) = 222678895
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/fonts/noto/cjk/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -r1.3 PLIST
--- pkg/PLIST   11 Mar 2022 19:00:25 -0000      1.3
+++ pkg/PLIST   24 Mar 2022 10:38:02 -0000
@@ -1,10 +1,4 @@
 share/fonts/
 @fontdir share/fonts/noto/
-share/fonts/noto/NotoSansCJK.ttc
-share/fonts/noto/NotoSerifCJK-Black.ttc
-share/fonts/noto/NotoSerifCJK-Bold.ttc
-share/fonts/noto/NotoSerifCJK-ExtraLight.ttc
-share/fonts/noto/NotoSerifCJK-Light.ttc
-share/fonts/noto/NotoSerifCJK-Medium.ttc
-share/fonts/noto/NotoSerifCJK-Regular.ttc
-share/fonts/noto/NotoSerifCJK-SemiBold.ttc
+share/fonts/noto/NotoSansCJK-VF.otf.ttc
+share/fonts/noto/NotoSerifCJK-VF.otf.ttc

Reply via email to