You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.en.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
> ENGLISH | [简体中文](README.md)
4
4
5
-
## font-xibo
5
+
## font-cengluan(层峦字体)
6
6
7
-
Xibo is a Chinese TTY font designed for Linux, aiming to provide Chinese display in TTY without installing kernel patches such as [cjktty](https://github.com/zhmars/cjktty-patches) or third-party software like [kmscon](http://www.freedesktop.org/wiki/Software/kmscon), [fbterm](https://salsa.debian.org/debian/fbterm), or [zhcon](https://zhcon.sourceforge.net/).
7
+
cengluan is a Chinese TTY font designed for Linux, aiming to provide Chinese display in TTY without installing kernel patches such as [cjktty](https://github.com/zhmars/cjktty-patches) or third-party software like [kmscon](http://www.freedesktop.org/wiki/Software/kmscon), [fbterm](https://salsa.debian.org/debian/fbterm), or [zhcon](https://zhcon.sourceforge.net/).
8
8
9
9
The inspiration for this project comes from the [syllazh](https://github.com/oldherl/syllazh/) font.
10
10
@@ -13,7 +13,7 @@ The inspiration for this project comes from the [syllazh](https://github.com/old
13
13
When using this font, you may notice that characters with similar pronunciations are displayed as the same character. For example, any of the characters "用永勇拥擁涌湧咏詠蛹雍踊庸踴泳" will be uniformly displayed as "用".
14
14
15
15
This is because fonts on Linux TTY are generally changed using the `setfont` tool from the kbd package, which supports a maximum of 512 glyphs. However, a single glyph can map to multiple Unicode code points.
16
-
Therefore, Xibo maps all characters with the same pronunciation (ignoring tones) to the same glyph, allowing for Chinese character display within the limited number of glyphs.
16
+
Therefore, cengluan maps all characters with the same pronunciation (ignoring tones) to the same glyph, allowing for Chinese character display within the limited number of glyphs.
17
17
18
18
### Terminal User Inerface Display Optimization
19
19
@@ -46,7 +46,7 @@ This font also optimizes the mapping of commonly used graphical symbols in termi
46
46
Among these, `┌` is mapped to the letter `r`, `┬` is mapped to the letter `T`, `┘` is mapped to the letter `J`, etc.
47
47
This type of mapping maximizes the improvement of display quality without occupying more glyphs (:-D).
48
48
49
-

49
+

50
50
51
51
### Character Width Display Optimization
52
52
@@ -64,8 +64,8 @@ This leads to:
64
64
- If all characters are displayed with a width of two units: all half-width characters occupy two columns, but visually only have a width of one unit, resulting in [large gaps between half-width characters](assets/display_old.png).
65
65
66
66
Given the high difficulty of finding or designing "tall and narrow half-width monospace Chinese fonts" or "compatible full-width English letter fonts",
67
-
font-xibo maps all English letters, Arabic numerals, ASCII punctuation, and other characters to full-width characters in the UTF-8 high range.
68
-
Although each Chinese character is still separated by a [thirty-second character](#thirty-second-character), font-xibo achieves a relatively balanced visual appearance overall.
67
+
font-cengluan maps all English letters, Arabic numerals, ASCII punctuation, and other characters to full-width characters in the UTF-8 high range.
68
+
Although each Chinese character is still separated by a [thirty-second character](#thirty-second-character), font-cengluan achieves a relatively balanced visual appearance overall.
69
69
70
70
### Thirty-second Character
71
71
@@ -76,8 +76,8 @@ The thirty-second character in Linux TTY fonts defaults to `U+20`, which is a sp
@@ -94,7 +94,7 @@ The thirty-second character in Linux TTY fonts defaults to `U+20`, which is a sp
94
94
95
95
During the build process, the script will install `psftools`, which is used to generate the font.
96
96
97
-
After building, a PSF2 font file named `xibo.psfu.gz` will be generated in the `output/` directory.
97
+
After building, a PSF2 font file named `cengluan.psfu.gz` will be generated in the `output/` directory.
98
98
99
99
## Using the Font
100
100
@@ -104,7 +104,7 @@ After building, a PSF2 font file named `xibo.psfu.gz` will be generated in the `
104
104
>
105
105
> Run `setfont -V` to check the version.
106
106
107
-
Place `xibo.psfu.gz` in the `consolefonts` directory (located at `/usr/share/consolefonts/` on Debian and `/usr/share/kbd/consolefonts/` on Arch Linux), then execute `setfont xibo` to change the font or `setfont -d xibo` to switch to a double-sized font.
107
+
Place `cengluan.psfu.gz` in the `consolefonts` directory (located at `/usr/share/consolefonts/` on Debian and `/usr/share/kbd/consolefonts/` on Arch Linux), then execute `setfont cengluan` to change the font or `setfont -d cengluan` to switch to a double-sized font.
0 commit comments