Skip to content

Commit

Permalink
sync with Nowar Sans
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanoHao committed Oct 20, 2019
1 parent 1064c07 commit 7c9da01
Show file tree
Hide file tree
Showing 45 changed files with 510 additions and 5,924 deletions.
12 changes: 4 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
*.otd
*.7z
/shs/*.otf
/shs/*.ttf
/nowar/
Makefile
__pycache__/
/??-???/
/OSF-???/
/NowarNeoSansTypeface/
/source/shs/*.otf
/build/
/out/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "libotd"]
path = libotd
url = https://github.com/nowar-fonts/libotd.git
5,374 changes: 0 additions & 5,374 deletions Makefile

This file was deleted.

39 changes: 24 additions & 15 deletions README-Hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# 有爱新黑(《魔兽世界》字体包)

有爱新黑是《魔兽世界》字体包,支持所有语言。有爱新黑是 [Noto Sans](https://github.com/googlei18n/noto-fonts)[思源黑体](https://github.com/adobe-fonts/source-han-sans)的合并字体。
有爱新黑是《魔兽世界》和《魔兽世界:经典怀旧服》字体包,支持所有语言。有爱新黑是 [Noto Sans](https://github.com/googlei18n/noto-fonts)[思源黑体](https://github.com/adobe-fonts/source-han-sans)的合并字体。

> Make Love, Not Warcraft.<br>
> 要有爱,不要魔兽争霸。<br>
Expand All @@ -18,7 +18,7 @@

镜像:[Gitee 上的最新版](https://gitee.com/nowar-fonts/Nowar-Neo-Sans/releases)

有爱新黑有 4 种字重和 8 种地区变体。
有爱新黑有 4 种字重和 7 种地区变体,此外还有若干特性

### 字重

Expand All @@ -31,20 +31,19 @@

CN、TW、HK、JP、KR 是 “标准变体”,支持完整的字符集,并遵循各地区的字形标准。

| | 西文 | 简体中文 | 繁体中文 | 韩国语 |
| -- | ----------------- | ------------ | -------- | -------- |
| CN | 中国大陆字形(UI)| 中国大陆字形 | 台湾字形 | 韩国字形 |
| TW | 台湾字形(UI) | 中国大陆字形 | 台湾字形 | 韩国字形 |
| HK | 香港字形(UI) | 中国大陆字形 | 香港字形 | 韩国字形 |
| JP | 日本字形(UI) | 中国大陆字形 | 台湾字形 | 韩国字形 |
| KR | 韩国字形(UI) | 中国大陆字形 | 台湾字形 | 韩国字形 |
| | 西文 | 简体中文 | 繁体中文 | 韩国语 |
| -- | ----------------- | ------------ | -------- | ------------- |
| CN | 中国大陆字形(UI)| 中国大陆字形 | 台湾字形 | 韩国字形(UI)|
| TW | 台湾字形(UI) | 中国大陆字形 | 台湾字形 | 韩国字形(UI)|
| HK | 香港字形(UI) | 中国大陆字形 | 香港字形 | 韩国字形(UI)|
| JP | 日本字形(UI) | 中国大陆字形 | 台湾字形 | 韩国字形(UI)|
| KR | 韩国字形(UI) | 中国大陆字形 | 台湾字形 | 韩国字形(UI)|

CL、OSF 是 “传统变体”,支持完整的字符集,采用传统印刷字形(即康熙字形)。
CL 是 “传统变体”,支持完整的字符集,采用传统印刷字形(即康熙字形)。

| | 西文 | 东亚语言 |
| --- | ------------------------- | -------- |
| CL | 传统字形(UI) | 传统字形 |
| OSF | 传统字形(UI,不齐线数字)| 传统字形 |
| | 西文 | 中文 | 韩国语 |
| --- | ------------- | -------- | ------------- |
| CL | 传统字形(UI)| 传统字形 | 传统字形(UI)|

GB 变体完全覆盖 GB 18030-2000 标准,移除了谚文支持,文件大小得以大幅缩减。

Expand All @@ -54,7 +53,17 @@ GB 变体完全覆盖 GB 18030-2000 标准,移除了谚文支持,文件大

* 西文:英语、西班牙语(拉丁美洲)、葡萄牙语、德语、西班牙语(欧洲)、法语、意大利语、俄语。
* 东亚语言:简体中文、繁体中文、韩国语。
* UI:中西文共用的标点视作西文标点;半角 CJK 标点;比例假名。
* UI:中西文共用的标点视作西文标点;半角 CJK 标点。

### 特性

| 标记 | 名称 | 简介 |
| ---- | ----------- | ------------------------------------------------- |
| OSF | Oldstyle | 不齐线、不等宽的旧式数字。 |
| SC | Smallcaps | 小型大写拉丁、西里尔、希腊字母。 |
| RP | Roleplaying | ``(U+4E36)重映射为 `·`(U+00B7,MIDDLE DOT)。|

预编译的特性变体:`CL,OSF``CL,SC``CL,OSF,SC``GB,RP`

### SharedMedia 字体包

Expand Down
39 changes: 24 additions & 15 deletions README-Hant.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# 有愛新黑(《魔獸世界》字型包)

有愛新黑是《魔獸世界》字型包,支援所有語言。有愛新黑是 [Roboto](https://github.com/google/roboto)[思源黑體](https://github.com/adobe-fonts/source-han-sans)的合併字型。
有愛新黑是《魔獸世界》和《魔獸世界:經典版》字型包,支援所有語言。有愛新黑是 [Roboto](https://github.com/google/roboto)[思源黑體](https://github.com/adobe-fonts/source-han-sans)的合併字型。

> Make Love, Not Warcraft.<br>
> 要有爱,不要魔兽争霸。<br>
Expand All @@ -18,7 +18,7 @@

鏡像:[Gitee 上的最新發佈](https://gitee.com/nowar-fonts/Nowar-Neo-Sans/releases)

有愛新黑有 4 種字重和 8 種地區變體。
4 種字重和 7 種地區變體,此外還有若干特徵

### 字重

Expand All @@ -31,20 +31,19 @@

CN、TW、HK、JP、KR 是「標準變體」,支援完整的字元集,並遵循各地區的字形標準。

| | 西文 | 簡體中文 | 繁體中文 | 韓國語 |
| -- | ------------------| ------------ | -------- | -------- |
| CN | 中國大陸字形(UI)| 中國大陸字形 | 臺灣字形 | 韓國字形 |
| TW | 臺灣字形(UI) | 中國大陸字形 | 臺灣字形 | 韓國字形 |
| HK | 香港字形(UI) | 中國大陸字形 | 香港字形 | 韓國字形 |
| JP | 日本字形(UI) | 中國大陸字形 | 臺灣字形 | 韓國字形 |
| KR | 韓國字形(UI) | 中國大陸字形 | 臺灣字形 | 韓國字形 |
| | 西文 | 簡體中文 | 繁體中文 | 韓國語 |
| -- | ------------------| ------------ | -------- | ------------- |
| CN | 中國大陸字形(UI)| 中國大陸字形 | 臺灣字形 | 韓國字形(UI)|
| TW | 臺灣字形(UI) | 中國大陸字形 | 臺灣字形 | 韓國字形(UI)|
| HK | 香港字形(UI) | 中國大陸字形 | 香港字形 | 韓國字形(UI)|
| JP | 日本字形(UI) | 中國大陸字形 | 臺灣字形 | 韓國字形(UI)|
| KR | 韓國字形(UI) | 中國大陸字形 | 臺灣字形 | 韓國字形(UI)|

CL、OSF 是「傳統變體」,支援完整的字元集,採用傳統印刷字形(即康熙字形)。
CL 是「傳統變體」,支援完整的字元集,採用傳統印刷字形(即康熙字形)。

| | 西文 | 東亞語言 |
| --- | ------------------------- | -------- |
| CL | 傳統字形(UI) | 傳統字形 |
| OSF | 傳統字形(UI,不齊線數字)| 傳統字形 |
| | 西文 | 中文 | 韓國語 |
| --- | ------------------------- | -------- | ------------- |
| CL | 傳統字形(UI) | 傳統字形 | 傳統字形(UI)|

GB 變體完全覆蓋 GB 18030-2000 標準,移除了諺文支援,文件大小得以大幅縮減。

Expand All @@ -54,7 +53,17 @@ GB 變體完全覆蓋 GB 18030-2000 標準,移除了諺文支援,文件大

* 西文:英語、西班牙語(拉丁美洲)、葡萄牙語、德語、西班牙語(歐洲)、法語、義大利語、俄語。
* 東亞語言:簡體中文、繁體中文、韓國語。
* UI:中西文共用的標點視作西文標點;半形 CJK 標點;比例假名。
* UI:中西文共用的標點視作西文標點;半形 CJK 標點。

### 特徵

| 標記 | 名稱 | 簡介 |
| ---- | ----------- | ------------------------------------------------------------------------------- |
| OSF | Oldstyle | 不齊線、不等寬的舊樣式數字。 |
| SC | Smallcaps | 小型大寫拉丁、西里爾、希臘字母。 |
| RP | Roleplaying | ``(U+4E36)重對映為 `·`(U+00B7,MIDDLE DOT;或 U+2027,HYPHENATION POINT)。|

預編譯的特徵變體:`CL,OSF``CL,SC``CL,OSF,SC``GB,RP`

### SharedMedia 字型包

Expand Down
115 changes: 95 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Nowar Neo Sans for _World of Warcraft_

This is Nowar Neo Sans, font packs for _World of Warcraft_ that support all client languages. Nowar Neo Sans is based on [Roboto](https://github.com/google/roboto) and [Source Han Sans](https://github.com/adobe-fonts/source-han-sans).
This is Nowar Neo Sans, font packs for _World of Warcraft_ and _WoW Classic_ that support all client languages. Nowar Neo Sans is based on [Roboto](https://github.com/google/roboto) and [Source Han Sans](https://github.com/adobe-fonts/source-han-sans).

> Make Love, Not Warcraft.<br>
> 要有爱,不要魔兽争霸。<br>
Expand All @@ -18,7 +18,7 @@ This is Nowar Neo Sans, font packs for _World of Warcraft_ that support all clie

Mirrors: [Latest release at Gitee](https://gitee.com/nowar-fonts/Nowar-Neo-Sans/releases)

Nowar Neo Sans is shipped in 4 weights and 8 regional variants.
Nowar Neo Sans is shipped in 4 weights and 7 regional variants, with several features.

### Weights

Expand All @@ -31,47 +31,122 @@ Nowar Neo Sans is shipped in 4 weights and 8 regional variants.

CN, TW, HK, JP and KR are “standard variants”, which have full character set support with regional Chinese character orthographies.

| | European | 简体中文 | 繁體中文 | 한국어 |
| -- | ------------------- | -------------- | --------- | -------- |
| CN | Mainland China (UI) | Mainland China | Taiwan | S. Korea |
| TW | Taiwan (UI) | Mainland China | Taiwan | S. Korea |
| HK | Hong Kong (UI) | Mainland China | Hong Kong | S. Korea |
| JP | Japan (UI) | Mainland China | Taiwan | S. Korea |
| KR | S. Korea (UI) | Mainland China | Taiwan | S. Korea |
| | European | 简体中文 | 繁體中文 | 한국어 |
| -- | ------------------- | -------------- | --------- | ------------- |
| CN | Mainland China (UI) | Mainland China | Taiwan | S. Korea (UI) |
| TW | Taiwan (UI) | Mainland China | Taiwan | S. Korea (UI) |
| HK | Hong Kong (UI) | Mainland China | Hong Kong | S. Korea (UI) |
| JP | Japan (UI) | Mainland China | Taiwan | S. Korea (UI) |
| KR | S. Korea (UI) | Mainland China | Taiwan | S. Korea (UI) |

CL and OSF are “classical variants”, which have full character set support with classical Chinese character orthography (aka Kāngxī Dictionary forms).
CL, the “classical variant”, have full character set support with classical Chinese character orthography (aka Kāngxī Dictionary forms).

| | European | East Asian |
| --- | ------------------------------- | ---------- |
| CL | Classical (UI) | Classical |
| OSF | Classical (UI, Oldstyle Figure) | Classical |
| | European | 中文 | 한국어 |
| --- | -------------- | --------- | -------------- |
| CL | Classical (UI) | Classical | Classical (UI) |

GB is a special offer that supports a superset of Chinese national standard GB 18030-2000. The GB releases are much smaller than standard releases by removing Hangul support.
GB is a variant that supports a superset of Chinese national standard GB 18030-2000. The GB distributions aim at smaller size by removing Hangul support.

| | European | 中文 | 한국어 |
| -- | ------------------- | -------------- | ------ |
| GB | Mainland China (UI) | Mainland China | N/A |

* European: English, Español (AL), Português, Deutsch, Español (EU), Français, Italiano, and Русский.
* East Asian: 简体中文, 繁體中文, and 한국어.
* UI: Ambiguous punctations are treated as Western; CJK puctations are half-width; Kana are proportional.
* UI: Ambiguous punctations are treated as Western; CJK puctations are half-width.

### Features

| Tag | Name | Description |
| --- | ----------- | ---------------------------------------------------------------------- |
| OSF | Oldstyle | Oldstyle (non-lining), propotional figure. |
| SC | Smallcaps | Small capitals for Latin, Cyrillic and Greek. |
| RP | Roleplaying | `` (U+4E36) is mapped to the same glyph as `·` (U+00B7, MIDDLE DOT). |

Pre-built feature variants: `CL,OSF`, `CL,SC`, `CL,OSF,SC`, `GB,RP`.

### SharedMedia Font Provider

Nowar Neo Sans is also avialable as an addon (REALLY HUGE!), to register Nowar Neo Sans typeface to SharedMedia.

## How to Build

Dependencies: basic Unix utils, [Python](https://www.python.org/), [otfcc](https://github.com/caryll/otfcc), [otfcc-c2q](https://github.com/caryll/otfcc-cubic2quad) and [7-Zip](https://www.7-zip.org/) (add to `PATH`).
### Dependencies

+ basic Unix utils,
+ [Python](https://www.python.org/),
+ [otfcc](https://github.com/caryll/otfcc),
+ [otfcc-c2q](https://github.com/caryll/otfcc-cubic2quad) and
+ [7-Zip](https://www.7-zip.org/) (add to `PATH`).

Note: choose 64-bit version if possible. 32-bit version may lead to out-of-memory issue.
Note:
+ Choose 64-bit version if possible. 32-bit version may lead to out-of-memory issue.
+ Use POSIX build of GNU Make on Windows ([MSYS2’s](https://www.msys2.org) or [Nowar’s](https://github.com/nowar-fonts/Toolchain-Windows-Build)).

Run `configure.py` to generate Makefile. (Optional)
### Build Feature Variant

Prepare submodules:
```bash
git submodule update --init --recursive
```

Run `configure.py` to generate Makefile:
```bash
python configure.py
```

Put Source Han Sans OTF files (all families but HW) and Subset OTF files (CN only) to `shs/`, then just `make` it.
Put Source Han Sans OTF files (all families but HW) and Subset OTF files (if you need GB variant) to `source/shs/`

Then make a specific variant:
```bash
make <region>,<features>-<weight> -j<threads>
```
Note: Features must be identically sorted as mentioned above. (`OSF`, `SC`, `RP`).

e.g.
```bash
make CN,OSF,SC,RP-400 -j4
```

The output is `out/NowarNeoSans-<region>,<features>-<weight>-<version>.7z`.

### Create Regional Variant

To build exactly what you need, modify `configure.py`:
```python
class Config:
# put your variant here
fontPackRegion = [ <your_region> ]

# define the variant here. don’t remove pre-defined variants.
regionalVariant = { ... }
```

For example, “I enjoy Japna’s orthography, and I’d like to apply it to every language!”
```python
class Config:
fontPackRegion = [ "JPeverywhere" ]

regionalVariant = {
...,
"JPeverywhere": {
"Latn": "JP",
"Hans": "JP",
"Hant": "JP",
"ko": "JP",
}
}
```

Then, run `python configure.py` to generate `Makefile`. The new regional variant (with optional feature) can be built by:
```bash
make <region>,<features>-<weight> -j<threads>
```
e.g.
```bash
make JPeverywhere-400 -j4
make JPeverywhere,OSF-400 -j4
```

## Credit

Expand Down
Loading

0 comments on commit 7c9da01

Please sign in to comment.