Skip to content

Commit

Permalink
Update v1.500 (#21)
Browse files Browse the repository at this point in the history
* update test-v1.333

* adjust "glyph name" from uXXXX to uniXXXX

uni04F5
uni2C64
uni2C65
uni2C66
uniA78D
uniA7AA
uniA7AD
uniA7AE
uniA7B2
uniA7B3
uniA7B4

* Adjust uniXXXX to uXXXX

u04F5
u2C64
u2C65
u2C66
uA78D
uA7AA
uA7AD
uA7AE
uA7B2
uA7B3
uA7B4

* Update LXGWWenKaiTC_common-Light.ufoz

* Update LXGWWenKaiTC_common-Light.ufoz

* revert fontinfo to original format

* update actions flow

* Further Adjustment

Remove `liga` feature due to its messy content;
Adjust uFB02 uFB04 for tailed "l";
Adjust u5235 u9FE2 u9FE3 u9FE4 for component "耳".

* Update Readme

* Further Adjustment

u7659

* map u6164 to U+22871

* Update Suzhou numerals

* Add new UVS in Unicode 16.0

quoteleft.full
quoteright.full
quotedblleft.full
quotedblright.full

* Add u27AF4

* Upload UVS documentation

* Add files via upload

* Update UVS documentation

* Add `halt` and `vhal`

* Update README.md

* Update README.md

* Fix bolds' fontinfo plist

* Change Bold(700) into Medium(500)

* Remove Bold TTFs

* Update uvs.pdf

* Adjust u5B6C

* Adjust several glyphs

u4F6C
u54BE
u58F5

* Adjust uA78D

from Ч to turned chair

* Create 20240929.md

---------

Co-authored-by: NFSL2001 <[email protected]>
  • Loading branch information
lxgw and NightFurySL2001 authored Sep 28, 2024
1 parent c58227c commit 6d85691
Show file tree
Hide file tree
Showing 3,836 changed files with 25,751 additions and 7,388 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
87 changes: 46 additions & 41 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,70 +1,75 @@
name: Build font and specimen

on: [push, release]
on:
push:
# do not run when push tag
branches:
- '**'
workflow_dispatch:
inputs:
version:
description: "版本号,格式vX.XXX"
required: true
type: string
release_date:
description: "版本日期,格式MONTH dd, YYYY。若空置将默认使用 UTC+8/上海当前的日期。"
type: string

jobs:
build:
runs-on: ubuntu-latest
env:
VERSION_TAG: ${{ inputs.version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install sys tools/deps
run: |
sudo apt-get update
sudo apt-get install ttfautohint
sudo snap install yq
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ./venv/
key: ${{ runner.os }}-venv-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-venv-
- name: gen zip file name
id: zip-name
shell: bash
# Set the archive name to repo name + "-assets" e.g "MavenPro-assets"
run: echo "ZIP_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')-fonts" >> $GITHUB_ENV
# If a new release is cut, use the release tag to auto-bump the source files
# Use version tag to auto-bump the source files if provided manually
- name: Bump release
if: github.event_name == 'release'
id: bump_release
if: github.event_name == 'workflow_dispatch'
run: |
make venv
. venv/bin/activate
SRCS=$(yq e ".sources[]" sources/config.yaml)
TAG_NAME=${GITHUB_REF/refs\/tags\//}
SRCS=$(ls -d sources/*.ufo)
TAG_NAME=${{ env.VERSION_TAG }}
echo "Bumping $SRCS to $TAG_NAME"
for src in $SRCS
do
bumpfontversion sources/$src --new-version $TAG_NAME;
python3 sources/scripts/bump_version.py "$src/fontinfo.plist" -v "$TAG_NAME" -d "${{ inputs.release_date }}"
done
- name: Build font
run: make build
release:
# only run if the commit is tagged...
if: github.event_name == 'release'
# ... and it builds successfully
needs:
- build
runs-on: ubuntu-latest
env:
ZIP_NAME: ${{ needs.build.outputs.zip_name }}
steps:
- uses: actions/checkout@v2
- name: Download artefact files
uses: actions/download-artifact@v2
with:
name: ${{ env.ZIP_NAME }}
path: ${{ env.ZIP_NAME }}
- name: Zip files
run: zip -r ${{ env.ZIP_NAME }}.zip ${{ env.ZIP_NAME }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ env.ZIP_NAME }}.zip
asset_name: ${{ env.ZIP_NAME }}.zip
tag: ${{ github.ref }}
overwrite: true
body: "Production ready fonts"

# Recording files
- name: Archive built TTFs
uses: actions/upload-artifact@v4
with:
name: result_ttf
path: fonts/TTF/**
- name: Archive built UFOs
uses: actions/upload-artifact@v4
with:
name: source_ufos
path: sources/build/instance_ufos/**
- name: Commit fonts
if: github.event_name == 'workflow_dispatch'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Bump version to ${{ env.VERSION_TAG }}
file_pattern: 'fonts/TTF/*.ttf sources/*.ufo/fontinfo.plist'
41 changes: 41 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Package fonts and upload to release

on:
release:
# do not run when created/draft, only when finalised
types: [published]

jobs:
release:
if: github.event_name == 'release'
runs-on: ubuntu-latest
env:
FULL_ZIP_NAME: lxgw-wenkai-tc-${{ github.event.release.tag_name }}
steps:
- uses: actions/checkout@v4

# zip license
- run: cp OFL.txt fonts/TTF/OFL.txt

- name: Zip files
run: |
cd fonts
mv TTF ${{ env.FULL_ZIP_NAME }}
zip -r ${{ env.FULL_ZIP_NAME }}.zip ${{ env.FULL_ZIP_NAME }}
tar -czvf ${{ env.FULL_ZIP_NAME }}.tar.gz ${{ env.FULL_ZIP_NAME }}
mv ${{ env.FULL_ZIP_NAME }} TTF
cp ${{ env.FULL_ZIP_NAME }}.zip TTF/${{ env.FULL_ZIP_NAME }}.zip
cp ${{ env.FULL_ZIP_NAME }}.tar.gz TTF/${{ env.FULL_ZIP_NAME }}.tar.gz
# remove license
- run: rm fonts/TTF/OFL.txt

# upload files to releases
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true
file: fonts/TTF/*
tag: ${{ github.ref }}
overwrite: true
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ The Traditional Chinese Version of LXGW WenKai. 霞鶩文楷繁體中文版。
[![開源授權](https://img.shields.io/github/license/lxgw/LxgwWenkaiTC?style=flat-square)](https://github.com/lxgw/LxgwWenkaiTC)
[![最新版](https://img.shields.io/github/release/lxgw/LxgwWenkaiTC?style=flat-square)](https://github.com/lxgw/LxgwWenkaiTC/releases)
[![猫啃网](https://shields.io/badge/%E7%8C%AB%E5%95%83%E7%BD%91-fe5e52?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAfCAMAAABeSlSAAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHyUExURQAAAAAA//8AAAAA//8AAAAA/wAA//8AAAAA//8AAAAA//8A//8AAAAA//8AAAAA//8AAAAA/wD///8AAAD/////AAD/////AP//AP//////AAD/////AAD/////AP///wD/////AP//AP//////AP//////AP///wD//////wD//wD/////////AP///wD//wD//wD/////AP///////////wD/////AP///wD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f39/f////39/f39/f39/f39/f39/f7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v///y6UHskAAACldFJOUwADAwQEBQYGBwcICAkLCwwMDQ0NDhESEhMWFxgYGRkbHBwdHR8hIyQlJygpKSwsLS4yMjQ1Njc3ODk6PD5BQkNFRkdNUFFTVldaXF1fYGdqbnBxcnZ4eXt8gIGEhYaJio6RkpWXmJqbnJ2goqOlpqirrrCxs7S1trm7vr/BwsTHyMvMzc/Q0tPU2Nrb3N3f4uTm5+jp6+zt7vDx8vP19vf4+/z9/iyQxCoAAAAJcEhZcwAAFxEAABcRAcom8z8AAAHPSURBVDhPvZDpOxtRFIdvCJ1olaCLoqW1BF1U2tpJSlpFiK17NNE1DbGVoFVL20TRoMFUDDKS83+6Z+6tJjx9Hp+8X+b+fued88xcckLcmnl9nR8PkfVizoDPewHYcRYqVRQZr0TYfYinii0A2LReVOoDEiwrtN5txPNtMTj2B8BTH6OMGHc/A0huaduEoXg52FwwIEPY+7a1+opalV5uts/KEPp0s07aqkIj2wMv1XHmDbo0AqlTQ9rklRtoJI3DWLJ+MsxHf5mtFT7A98toCG/A9/jQBkR6/gNGzqJBLHu8O4pVrRgGiecjBJsUgeiWWPYNOtwBWk99dHlZs17KDO24Ep3nVHdMlV7ffaNRI/SEsPLkMENwYApUkUfb0K/XW0N7XTElv7GbSGZGghOTWBpno29dpT8PfWd0vxQjlRmJw8yItwPM52onAPq5MX3huIbw/n8GvzBC75+mzbJIo3iZVuFn7MIIKcIX5I7TEUZLkFb+ci6Q2G5cstrQC7CQf/4rgKtmEVfYNFwgJO0dXpAs0vbLKLXFHRrBfYmPkZQe3BpFyJXJhwxV/Tc+4fw0n+KjA+Ibhvx8CmvDjf8+IYprJsuTp+0P8ng8OQjZB5l3H1123DZyAAAAAElFTkSuQmCC)](https://www.maoken.com/freefonts/16424.html)
[![Google Fonts](https://shields.io/badge/Google%20Fonts-4285F4?style=flat-square&logo=googlefonts&logoColor=ffffff)](https://fonts.google.com/specimen/LXGW+WenKai+TC)

## 介紹

本專案爲 [霞鶩文楷](https://github.com/lxgw/LxgwWenkai) 的繁體中文版。最初主要使用 [AFDKO](https://github.com/adobe-type-tools/afdko) 配合 [極限社區 Zonz 提供的傳承字形、康熙舊形 ttx 檔(現已無法訪問)](https://bbs.themex.net/showthread.php?t=16906063)[Klee One](https://github.com/fontworks-fonts/Klee) 中包含的漢字轉換爲舊字形,並補入修改前的舊版「霞鶩文楷」字形,部分部件和單字進一步手動修改;而後參考 [一點字坊「傳承字形標準化文件」](https://github.com/ichitenfont/inheritedglyphs) 對大部分部件進行修改,更適合繁體中文使用者及傳承字形愛好者使用。

「霞鶩文楷 TC」支援 Unicode 變體序列(Unicode Variation Sequences, UVS),用於標點符號寬度的選擇,[點擊此處查看一覽表](documentation/uvs.pdf)

## 預覽

![](https://raw.githubusercontent.com/lxgw/LxgwWenkaitc/main/documentation/wenkaitc-1.png)
Expand Down Expand Up @@ -48,7 +51,7 @@ The Traditional Chinese Version of LXGW WenKai. 霞鶩文楷繁體中文版。

### ⅱ. 從原始碼生成

請運行 `/sources/build.bat``/sources/build.sh`。需要安裝 [`fontmake`](https://github.com/googlefonts/fontmake)`pip3 install fontmake`[`fontTools`](https://github.com/fonttools/fonttools)`pip3 install fonttools`
可通過 `make` 運行完整的構建流程: `make build`。目前的原始碼只能在類 Unix 系統運行,需要安裝 Python 3

## 注意事項

Expand Down Expand Up @@ -84,7 +87,7 @@ The Traditional Chinese Version of LXGW WenKai. 霞鶩文楷繁體中文版。
- [一點字坊「傳承字形標準化文件」](https://github.com/ichitenfont/inheritedglyphs) 提供部分傳承字形部件和筆畫參照。
- 部分傳承字形與臺標同形或形近的部件借用 [芫荽 / Iansui](https://github.com/ButTaiwan/iansui) 字體。
- [漢文博士](https://www.cnblogs.com/hanbox/)[國學迷](http://www.guoxuemi.com/zidian/bujian/)[字統網](https://zi.tools/)提供部件查字服務。
- [Aaron Bell](https://github.com/aaronbell) 優化構建流程。
- [Aaron Bell](https://github.com/aaronbell)[@夜煞之樂](https://github.com/NightFurySL2001) 優化構建流程。

## 關注作者

Expand All @@ -97,24 +100,25 @@ The Traditional Chinese Version of LXGW WenKai. 霞鶩文楷繁體中文版。

## 由本字型衍生的字型
- [月星楷 / Moon Stars Kai](https://github.com/GuiWonder/MoonStarsKai)
- [末綺楷書 / Astalia](https://github.com/Ayaginu-Sue/Astalia)
- [Astalia](https://github.com/Ayaginu-Sue/Astalia)
- [Y式筆書 / YshiPen-Shuti](https://github.com/Steve-Yuu/YshiPen-Shuti)
- [混菜寫楷 / Mixed-VsWeKai](https://github.com/FWHP-Enfun/Mixed-VsWeKai)

## 更多「霞鶩」系列字型
### 「霞鶩文楷」系列
- 霞鶩文楷 TC / LXGW WenKai TC
- **霞鶩文楷 TC / LXGW WenKai TC**
- [霞鶩文楷 GB / LXGW WenKai GB](https://github.com/lxgw/LxgwWenKaiGB) | [Lite](https://github.com/lxgw/LxgwWenKaiGB-Lite)
- [霞鶩文楷 / LXGW WenKai](https://github.com/lxgw/LxgwWenKai) | [Lite](https://github.com/lxgw/LxgwWenKai-Lite)
### 「晰緻尚銘」系列
- [霞鶩晰黑 / LXGW XiHei](https://github.com/lxgw/LxgwXiHei)
- [霞鶩緻宋 / LXGW ZhiSong](https://github.com/lxgw/LxgwZhiSong)
- [霞鶩新晰黑 / LXGW Neo XiHei](https://github.com/lxgw/LxgwNeoXiHei)
- [霞鶩新緻宋 / LXGW Neo ZhiSong](https://github.com/lxgw/LxgwNeoZhiSong)
- [霞鶩尚智黑 / LXGW Fasmart Gothic](https://github.com/lxgw/LxgwFasmartGothic)
- [霞鶩銘心宋 / LXGW Heart Serif](https://github.com/lxgw/LxgwHeartSerif)
- [霞鶩尚智黑 / LXGW Fasmart Gothic](https://github.com/lxgw/LxgwFasmartGothic) 停止維護
- [霞鶩銘心宋 / LXGW Heart Serif](https://github.com/lxgw/LxgwHeartSerif) 停止維護
### 其他
- [霞鶩漫黑 / LXGW Marker Gothic](https://github.com/lxgw/LxgwMarkerGothic)
- [霞鶩臻楷 / LXGW ZhenKai](https://github.com/lxgw/LxgwZhenKai) 停止維護
- [小賴字體 / Xiaolai](https://github.com/lxgw/kose-font)
- [悠哉字體 / Yozai](https://github.com/lxgw/yozai-font)

Expand Down
21 changes: 21 additions & 0 deletions documentation/changelog/20240929.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 霞鶩文楷 TC v1.500 版本更新(2024.09.29)
> [!WARNING]
> 本版本起,Bold 字重調整為 Medium 字重。由於本版本改動較大,請在安裝新版字型前,**務必**將以往安裝的「霞鶩文楷 TC」字型**徹底卸載**,不要覆蓋安裝。
## 漢字部分
### 1. 調整漢字
⺗⺜⺲⺳㏐㏑㏒㏓㣺丵佬凿咾壵孬崡悫檴縴虽蟴麝𠂒𠚤𦍌
#### 以下為 Medium 字重調整漢字:
㩮檍秡臆蠜饢
### 2. 新增漢字
仦鐤屮縉𠔉𡯁𡯂𢡱𦉫𦉰𦍋𧃽𧫴𬦻𬶌𱇏𲍌
## 其他字元部分
### 1. 將蘇州碼子更換為「芫荽」樣式
〡〢〣〤〥〦〧〨〩
### 2. 調整其他字元
Ḩⁱⁿₐₑₒₓₔₕₖₗₘₙₚₛₜ℮⏻⏼⏽⭘㎧㎨㎮㎯㏆㏐㏑㏒㏓㏞㏟
### 3. 新增字元
ӵỼỽỾỿ₰₱₲₳₵₶₷₸₺₻₼₾₿⃀℠␠ⱤⱥⱦꞍꞪꞭꞮꞲꞳꞴ
## 其他方面
- 引入 `halt``vhal` 特性,可以配合 Chrome 123 及後續版本實現標點擠壓特性;
- 根據 [Unicode 16.0 相關文檔](https://www.unicode.org/Public/16.0.0/ucd/StandardizedVariants.txt),新增 Unicode 變體序列(UVS)支援,在允許使用 UVS 的情況下,可通過該功能實現標點符號的切換,詳情[點擊此處瞭解](..\uvs.pdf)
- 鑒於多數用戶認為 Bold 字重與 Regular 字重分辨不清楚,本版本起,Bold 字重改為 Medium 字重,因此,在將字型更新到本版本前,**必須將舊版本字型徹底卸載,不要覆蓋安裝**,以免影響字型的呈現效果。
Binary file added documentation/uvs.pdf
Binary file not shown.
Binary file removed fonts/TTF/LXGWWenKaiMonoTC-Bold.ttf
Binary file not shown.
Binary file removed fonts/TTF/LXGWWenKaiTC-Bold.ttf
Binary file not shown.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
fontmake>=2.4
fontbakery>=0.7
gftools>=0.7
ufomerge
ufomerge
tzdata
145 changes: 0 additions & 145 deletions sources/LXGWWenKaiMonoTC-Bold.ufo/fontinfo.plist

This file was deleted.

Loading

0 comments on commit 6d85691

Please sign in to comment.