Skip to content

Commit 28ac79a

Browse files
committed
【新增】添加字体名称显示横幅脚本
- 更新版本号至 2.3.0 - 升级 fusion-pixel-font 源字体至 2025.10.20 版本 - 在 README 中添加图形符号显示示例 - 新增 print_banner.py 脚本用于显示字体名称 - 优化许可协议部分的链接格式
1 parent c9c369e commit 28ac79a

File tree

5 files changed

+32
-7
lines changed

5 files changed

+32
-7
lines changed

README.en.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ This font also optimizes the mapping of commonly used graphical symbols in termi
3131

3232
- Before optimization:
3333

34+
```plaintext
35+
?????????
36+
? ? ?
37+
?????????
38+
? ? ?
39+
?????????
40+
```
41+
3442
(Cannot be displayed correctly)
3543

3644
- After optimization:
@@ -108,9 +116,9 @@ Place `cengluan.psfu.gz` in the `consolefonts` directory (located at `/usr/share
108116

109117
## License
110118

111-
> Thanks to [oldherl](https://github.com/oldherl) for their forward-looking technical exploration project [syllazh](https://github.com/oldherl/syllazh/);
119+
> Thanks to **[oldherl](https://github.com/oldherl)** for their forward-looking technical exploration project [syllazh](https://github.com/oldherl/syllazh/);
112120
>
113-
> Thanks to **TakWolf** and their team for providing the `fusion-pixel-font` font.
121+
> Thanks to **[TakWolf](https://github.com/TakWolf)** and their team for providing the [fusion-pixel-font](https://github.com/TakWolf/fusion-pixel-font).
114122
115123
The script files `build.bash`, `build_font_from_bdf.py`, and all files in the `scripts/` directory in this repository follow the [GNU GENERAL PUBLIC LICENSE Version 3](LICENSE),
116124
`original/references/pinyin_hanzi` in the `original/references/` directory follows the GNU Lesser General Public License (LGPL) 2.1, and other reference files follow the [Unlicense license](original/references/LICENSE),

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@ cengluan 是一个为 Linux 设计的中文 TTY 字体,旨在在不安装诸
3333

3434
- 优化前:
3535

36-
(无法正确显示)
36+
```plaintext
37+
?????????
38+
? ? ?
39+
?????????
40+
? ? ?
41+
?????????
42+
```
43+
44+
(无法正常显示)
3745

3846
- 优化后:
3947

@@ -110,9 +118,9 @@ Linux TTY 默认第字体的三十二个字符为 `U+20`,既空格。这个字
110118

111119
## 许可协议
112120

113-
> 感谢 [oldherl](https://github.com/oldherl) 的前瞻技术探索项目 [syllazh](https://github.com/oldherl/syllazh/)
121+
> 感谢 **[oldherl](https://github.com/oldherl)** 的前瞻技术探索项目 [syllazh](https://github.com/oldherl/syllazh/)
114122
>
115-
> 感谢 **TakWolf** 及其团队提供的 `fusion-pixel-font` 字体。
123+
> 感谢 **[TakWolf](https://github.com/TakWolf)** 及其团队提供的 [fusion-pixel-font](https://github.com/TakWolf/fusion-pixel-font) 字体。
116124
117125
本仓库中的脚本文件 `build.bash``build_font_from_bdf.py``scripts/` 中的所有文件遵循 [GNU GENERAL PUBLIC LICENSE Version 3 许可协议](LICENSE)
118126
`original/references/` 目录下的 `original/references/pinyin_hanzi` 遵循 GNU Lesser General Public License (LGPL) 2.1,其余参照文件遵循 [Unlicense 许可协议](original/references/LICENSE)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.2.1
1+
2.3.0

build.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ mkdir -p $path/temp
88
mkdir -p $path/output
99

1010
# 下载 fusion-pixel-12px-monospaced-zh_hans 的压缩包
11-
download_url="https://github.com/TakWolf/fusion-pixel-font/releases/download/2025.10.06/fusion-pixel-font-12px-monospaced-bdf-v2025.10.06.zip"
11+
download_url="https://github.com/TakWolf/fusion-pixel-font/releases/download/2025.10.20/fusion-pixel-font-12px-monospaced-bdf-v2025.10.20.zip"
1212
wget "$download_url" -O $path/temp/font.zip
1313

1414
# 检查下载是否成功

scripts/print_banner.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
def display_banner():
2+
print("███████╗ ██████╗ ███╗ ██╗████████╗ ██████╗███████╗███╗ ██╗ ██████╗ ██╗ ██╗ ██╗ █████╗ ███╗ ██╗")
3+
print("██╔════╝██╔═══██╗████╗ ██║╚══██╔══╝ ██╔════╝██╔════╝████╗ ██║██╔════╝ ██║ ██║ ██║██╔══██╗████╗ ██║")
4+
print("█████╗ ██║ ██║██╔██╗ ██║ ██║█████╗██║ █████╗ ██╔██╗ ██║██║ ███╗██║ ██║ ██║███████║██╔██╗ ██║")
5+
print("██╔══╝ ██║ ██║██║╚██╗██║ ██║╚════╝██║ ██╔══╝ ██║╚██╗██║██║ ██║██║ ██║ ██║██╔══██║██║╚██╗██║")
6+
print("██║ ╚██████╔╝██║ ╚████║ ██║ ╚██████╗███████╗██║ ╚████║╚██████╔╝███████╗╚██████╔╝██║ ██║██║ ╚████║")
7+
print("╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚═════╝╚══════╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝")
8+
9+
display_banner()

0 commit comments

Comments
 (0)