Python3
Download "Noto Sans Japanese" from Google Fonts Early Access. https://fonts.google.com/earlyaccess
# Install Python3
$ brew install python3
# Install fonttools
$ pip3 install fonttools
# Install brotli
$ pip3 install brotli
# Install zopfli
$ pip3 install zopfli
# Download Noto Sans Japanese
$ curl -O http://fonts.gstatic.com/ea/notosansjapanese/v6/download.zip
$ unzip ./download.zip -d ./src
Character list
cat ./config/chars.jp.txt | tr -d '\n' > ./config/chars.jp.min.txt
WOFF
pyftsubset ./src/NotoSansJP-Regular.otf --text-file="./config/chars.jp.min.txt" --flavor=woff --with-zopfli --output-file=./dist/NotoSansJP-Regular.min.woff --layout-features='' --desubroutinize
pyftsubset ./src/NotoSansJP-Bold.otf --text-file="./config/chars.jp.min.txt" --flavor=woff --with-zopfli --output-file=./dist/NotoSansJP-Bold.min.woff --layout-features='' --desubroutinize
WOFF2
pyftsubset ./src/NotoSansJP-Regular.otf --text-file="./config/chars.jp.min.txt" --flavor=woff2 --output-file=./dist/NotoSansJP-Regular.min.woff2
pyftsubset ./src/NotoSansJP-Bold.otf --text-file="./config/chars.jp.min.txt" --flavor=woff2 --output-file=./dist/NotoSansJP-Bold.min.woff2
http://www.asahi-net.or.jp/~AX2S-KMTN/ref/jisx0208.html を参考に「記号、英数字、かな」「第1水準漢字」のみを含めたテキスト。
- https://ja.wikipedia.org/wiki/Unicode%E4%B8%80%E8%A6%A7_0000-0FFF
- http://www.asahi-net.or.jp/~AX2S-KMTN/ref/jisx0208.html
LICENSE
All Noto fonts are published under the SIL Open Font License (OFL) v1.1, which allows you to copy, modify, and redistribute them if you need to. See also Noto fonts