Skip to content

naokie/noto-fonts-subset-woff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Noto Fonts for Webfont

Build Noto Sans JP

Requirements

Python3

Download "Noto Sans Japanese" from Google Fonts Early Access. https://fonts.google.com/earlyaccess

Install

# 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

Build

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

Config

chars.jp.txt

http://www.asahi-net.or.jp/~AX2S-KMTN/ref/jisx0208.html を参考に「記号、英数字、かな」「第1水準漢字」のみを含めたテキスト。

cf.


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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages