Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
build fonts for CN/TW/JP/KR
Browse files Browse the repository at this point in the history
  • Loading branch information
chloerei committed Jul 12, 2015
1 parent 63b2ac4 commit 31d557b
Showing 1 changed file with 43 additions and 6 deletions.
49 changes: 43 additions & 6 deletions bin/build_fonts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,56 @@

mkdir tmp
cd tmp
wget https://github.com/akiratw/kaigen-gothic/releases/download/v1.002.20150501/KaiGenGothicCN-1.002.20150501.zip
unzip KaiGenGothicCN-1.002.20150501.zip

# CN
wget -c https://github.com/akiratw/kaigen-gothic/releases/download/v1.002.20150501/KaiGenGothicCN-1.002.20150501.zip
unzip -o KaiGenGothicCN-1.002.20150501.zip
../bin/convert_italic.pe KaiGenGothicCN-Regular.ttf
../bin/convert_italic.pe KaiGenGothicCN-Bold.ttf

cp KaiGenGothicCN-Regular.ttf ../data/fonts
cp KaiGenGothicCN-Regular-Italic.ttf ../data/fonts
cp KaiGenGothicCN-Bold.ttf ../data/fonts
cp KaiGenGothicCN-Bold-Italic.ttf ../data/fonts

# TW
wget -c https://github.com/akiratw/kaigen-gothic/releases/download/v1.002.20150501/KaiGenGothicTW-1.002.20150501.zip
unzip -o KaiGenGothicTW-1.002.20150501.zip
../bin/convert_italic.pe KaiGenGothicTW-Regular.ttf
../bin/convert_italic.pe KaiGenGothicTW-Bold.ttf

cp KaiGenGothicTW-Regular.ttf ../data/fonts
cp KaiGenGothicTW-Regular-Italic.ttf ../data/fonts
cp KaiGenGothicTW-Bold.ttf ../data/fonts
cp KaiGenGothicTW-Bold-Italic.ttf ../data/fonts

# JP
wget -c https://github.com/akiratw/kaigen-gothic/releases/download/v1.002.20150501/KaiGenGothicJP-1.002.20150501.zip
unzip -o KaiGenGothicJP-1.002.20150501.zip
../bin/convert_italic.pe KaiGenGothicJP-Regular.ttf
../bin/convert_italic.pe KaiGenGothicJP-Bold.ttf

cp KaiGenGothicJP-Regular.ttf ../data/fonts
cp KaiGenGothicJP-Regular-Italic.ttf ../data/fonts
cp KaiGenGothicJP-Bold.ttf ../data/fonts
cp KaiGenGothicJP-Bold-Italic.ttf ../data/fonts

# KR
wget -c https://github.com/akiratw/kaigen-gothic/releases/download/v1.002.20150501/KaiGenGothicKR-1.002.20150501.zip
unzip -o KaiGenGothicKR-1.002.20150501.zip
../bin/convert_italic.pe KaiGenGothicKR-Regular.ttf
../bin/convert_italic.pe KaiGenGothicKR-Bold.ttf

cp KaiGenGothicKR-Regular.ttf ../data/fonts
cp KaiGenGothicKR-Regular-Italic.ttf ../data/fonts
cp KaiGenGothicKR-Bold.ttf ../data/fonts
cp KaiGenGothicKR-Bold-Italic.ttf ../data/fonts

cd ..

# RobotoMono
cd data/fonts
wget https://github.com/google/fonts/raw/master/apache/robotomono/RobotoMono-Regular.ttf
wget https://github.com/google/fonts/raw/master/apache/robotomono/RobotoMono-Italic.ttf
wget https://github.com/google/fonts/raw/master/apache/robotomono/RobotoMono-Bold.ttf
wget https://github.com/google/fonts/raw/master/apache/robotomono/RobotoMono-BoldItalic.ttf
wget -c https://github.com/google/fonts/raw/master/apache/robotomono/RobotoMono-Regular.ttf
wget -c https://github.com/google/fonts/raw/master/apache/robotomono/RobotoMono-Italic.ttf
wget -c https://github.com/google/fonts/raw/master/apache/robotomono/RobotoMono-Bold.ttf
wget -c https://github.com/google/fonts/raw/master/apache/robotomono/RobotoMono-BoldItalic.ttf

0 comments on commit 31d557b

Please sign in to comment.