Skip to content

Commit

Permalink
0.2.2: Classic variant available; remove redundant glyphs in shipped …
Browse files Browse the repository at this point in the history
…fonts
  • Loading branch information
CyanoHao committed Jan 6, 2019
1 parent ee89bc3 commit 41e3900
Show file tree
Hide file tree
Showing 17 changed files with 42 additions and 56 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

下载[最新版](https://github.com/CyanoHao/Warcraft-Font-Merger/releases/latest)的字体合并补全工具并解压缩。

字体合并补全工具有 4 个版本,各个版本的自带字库不同。
字体合并补全工具有 5 个版本,各个版本的自带字库不同。
* `WarFontMerger-SC1-版本号.7z`:简体中文压缩字库(覆盖 GB18030,字体文件采用压缩技术,体积小但字形质量一般)。
* `WarFontMerger-SC2-版本号.7z`:简体中文标准字库(覆盖 GB18030,字形质量较好,**推荐**)。
* `WarFontMerger-SC3-版本号.7z`:简体中文大字库(覆盖中日韩各国字符,字形和标准字库一致,体积较大)。
* `WarFontMerger-TC3-版本号.7z`:繁体中文大字库(覆盖中日韩各国字符,字形采用台湾标准,体积较大)。
* `WarFontMerger-SC3-版本号.7z`:简体中文大字库(覆盖中日韩各国字符,字形和标准字库一致,体积稍大)。
* `WarFontMerger-TC-版本号.7z`:繁体中文大字库(覆盖中日韩各国字符,字形采用台湾标准,体积稍大)。
* `WarFontMerger-Classic-版本号.7z`:传统字形大字库(覆盖中日韩各国字符,字形采用传统印刷体风格,体积稍大)。

除了合并补全工具自带的字体库之外,[WMF 开源字体库](https://github.com/CyanoHao/WFM-Free-Font) 中的字体也经过验证可以用于该工具。

Expand Down Expand Up @@ -98,7 +99,7 @@ rm *.otd

## 开发计划

### 支持对每个字体自定义变换矩阵,并提供图形界面
### 支持对每个字体自定义变换矩阵

这样可以更好地匹配原有字体的风格。例如,修改倾斜角度、压缩字符宽度,甚至旋转字符。

Expand Down
46 changes: 31 additions & 15 deletions build.bash
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
VERSION=0.2.1

mkdir -p release
VERSION=0.2.2

x86_64-w64-mingw32-g++ src/merge-otd.cpp src/iostream.cpp -Isrc/ -std=c++14 -O3 -static -o bin/merge-otd.exe
strip bin/merge-otd.exe

mkdir -p release
cd release


Expand All @@ -15,13 +14,12 @@ mkdir -p $R
cp ../script/link.url $R/主页-使用说明.url
cp ../script/fonts.url $R/获取更多字体.url
cp ../bin/{otfccbuild,otfccdump,merge-otd}.exe $R/
cp ../script/comp-xs.bat $R/补全.bat
cp ../script/comp.bat $R/补全.bat
cp ../script/merge.bat $R/合并.bat
cp ../script/merge+comp-xs.bat $R/合并补全.bat
cp ../script/merge+comp.bat $R/合并补全.bat
cp ../script/pack-zh.bat $R/打包.bat
cp ../font/DroidSansFallbackFull.ttf $R/cjk.ttf
cp ../font/SourceHanSansCN-Medium-WesternSymbol.ttf $R/latinx.ttf
cp ../font/NotoSans-SemiCondensedMedium.ttf $R/latin.ttf
cp ../font/Nowar-Sans-CJK-XS-Regular.ttf $R/cjk.ttf
cp ../font/Nowar-Sans-LCG-Medium.ttf $R/latin.ttf

7z a -mx -myx -ms=on WarFontMerger-SC1-$VERSION.7z $R/
rar a -ma5 -m5 -s $R.rar $R/
Expand All @@ -38,8 +36,8 @@ cp ../script/comp.bat $R/补全.bat
cp ../script/merge.bat $R/合并.bat
cp ../script/merge+comp.bat $R/合并补全.bat
cp ../script/pack-zh.bat $R/打包.bat
cp ../font/SourceHanSansCN-Medium.ttf $R/cjk.ttf
cp ../font/NotoSans-SemiCondensedMedium.ttf $R/latin.ttf
cp ../font/Nowar-Sans-CJK-CN-Medium.ttf $R/cjk.ttf
cp ../font/Nowar-Sans-LCG-Medium.ttf $R/latin.ttf

7z a -mx -myx -ms=on WarFontMerger-SC2-$VERSION.7z $R/
rar a -ma5 -m5 -s $R.rar $R/
Expand All @@ -56,8 +54,8 @@ cp ../script/comp.bat $R/补全.bat
cp ../script/merge.bat $R/合并.bat
cp ../script/merge+comp.bat $R/合并补全.bat
cp ../script/pack.bat $R/打包.bat
cp ../font/SourceHanSansSC-Medium.ttf $R/cjk.ttf
cp ../font/NotoSans-SemiCondensedMedium.ttf $R/latin.ttf
cp ../font/Nowar-Sans-CJK-SC-Medium.ttf $R/cjk.ttf
cp ../font/Nowar-Sans-LCG-Medium.ttf $R/latin.ttf

7z a -mx -myx -ms=on WarFontMerger-SC3-$VERSION.7z $R/
rar a -ma5 -m5 -s $R.rar $R/
Expand All @@ -74,8 +72,26 @@ cp ../script/comp.bat $R/補全.bat
cp ../script/merge.bat $R/合併.bat
cp ../script/merge+comp.bat $R/合併補全.bat
cp ../script/pack.bat $R/打包.bat
cp ../font/SourceHanSansTC-Medium.ttf $R/cjk.ttf
cp ../font/NotoSans-SemiCondensedMedium.ttf $R/latin.ttf
cp ../font/Nowar-Sans-CJK-TC-Medium.ttf $R/cjk.ttf
cp ../font/Nowar-Sans-LCG-Medium.ttf $R/latin.ttf

7z a -mx -myx -ms=on WarFontMerger-TC-$VERSION.7z $R/
rar a -ma5 -m5 -s $R.rar $R/


R=字型合併補全工具-傳統字形大字庫-$VERSION

mkdir -p $R

cp ../script/link.url $R/主頁-使用說明\(簡體\).url
cp ../script/fonts.url $R/獲取更多字型\(簡體\).url
cp ../bin/{otfccbuild,otfccdump,merge-otd}.exe $R/
cp ../script/comp.bat $R/補全.bat
cp ../script/merge.bat $R/合併.bat
cp ../script/merge+comp.bat $R/合併補全.bat
cp ../script/pack.bat $R/打包.bat
cp ../font/Nowar-Sans-CJK-CL-Medium.ttf $R/cjk.ttf
cp ../font/Nowar-Sans-LCG-Medium.ttf $R/latin.ttf

7z a -mx -myx -ms=on WarFontMerger-TC3-$VERSION.7z $R/
7z a -mx -myx -ms=on WarFontMerger-Classic-$VERSION.7z $R/
rar a -ma5 -m5 -s $R.rar $R/
6 changes: 3 additions & 3 deletions build32.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=0.2.1-32bit
VERSION=0.2.2-32bit

i686-w64-mingw32-g++ src/merge-otd.cpp src/iostream.cpp -Isrc/ -std=c++14 -O3 -static -Wl,--large-address-aware -o bin32/merge-otd.exe
strip bin32/merge-otd.exe
Expand All @@ -18,8 +18,8 @@ cp ../script/comp.bat $R/补全.bat
cp ../script/merge.bat $R/合并.bat
cp ../script/merge+comp.bat $R/合并补全.bat
cp ../script/pack-zh.bat $R/打包.bat
cp ../font/SourceHanSansCN-Medium.ttf $R/cjk.ttf
cp ../font/NotoSans-SemiCondensedMedium.ttf $R/latin.ttf
cp ../font/Nowar-Sans-CJK-CN-Medium.ttf $R/cjk.ttf
cp ../font/Nowar-Sans-LCG-Medium.ttf $R/latin.ttf

7z a -mx -myx -ms=on WarFontMerger-SC2-$VERSION.7z $R/
rar a -ma5 -m5 -s $R.rar $R/
Binary file removed font/DroidSansFallbackFull.ttf
Binary file not shown.
Binary file removed font/NotoSans-SemiCondensedMedium.ttf
Binary file not shown.
Binary file added font/Nowar-Sans-CJK-CL-Medium.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added font/Nowar-Sans-CJK-XS-Regular.ttf
Binary file not shown.
Binary file added font/Nowar-Sans-LCG-Medium.ttf
Binary file not shown.
Binary file removed font/SourceHanSansCN-Medium-WesternSymbol.ttf
Binary file not shown.
15 changes: 0 additions & 15 deletions script/comp-xs.bat

This file was deleted.

2 changes: 1 addition & 1 deletion script/comp.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cd "%~dp0"

.\merge-otd.exe base.otd latin.otd cjk.otd

.\otfccbuild -O3 -o out.ttf base.otd
.\otfccbuild.exe -O3 -o out.ttf base.otd

del base.otd latin.otd cjk.otd

Expand Down
16 changes: 0 additions & 16 deletions script/merge+comp-xs.bat

This file was deleted.

2 changes: 1 addition & 1 deletion script/merge+comp.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cd "%~dp0"

.\merge-otd.exe base.otd latin.otd ext.otd cjk.otd

.\otfccbuild -O3 -o out.ttf base.otd
.\otfccbuild.exe -O3 -o out.ttf base.otd

del base.otd latin.otd ext.otd cjk.otd

Expand Down
2 changes: 1 addition & 1 deletion script/merge.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cd "%~dp0"

.\merge-otd.exe base.otd ext.otd

.\otfccbuild -O3 -o out.ttf base.otd
.\otfccbuild.exe -O3 -o out.ttf base.otd

del base.otd ext.otd

Expand Down

0 comments on commit 41e3900

Please sign in to comment.