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
+16-6Lines changed: 16 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,8 +53,6 @@ This font also optimizes the mapping of commonly used graphic symbols in termina
53
53
Here, `┌` is mapped to the letter `r`, `┬` to `T`, `┘` to `J`, etc.
54
54
Such mappings maximize display improvement while minimizing the use of additional glyphs (:-D).
55
55
56
-

57
-
58
56
### Character Width Display Optimization
59
57
60
58
In conventional text display scenarios:
@@ -69,19 +67,31 @@ However, PC Screen Font 2 (PSF2) is a fixed-width bitmap font format that does n
69
67
- If all characters are displayed with a width of one unit: full-width characters only show the left half, with the right half displayed as the [32nd character](#the-32nd-character);
70
68
- If all characters are displayed with a width of two units: all half-width characters occupy two columns, but visually they are only one unit wide, resulting in [large gaps between two half-width characters](assets/display_old_old.png).
71
69
72
-
Given the high difficulty of finding or designing "tall and narrow half-width monospaced Chinese fonts" or "adapted full-width English letter fonts", the old solution of font-cengluan mapped all English letters, Arabic numerals, ASCII punctuation, etc., to full-width characters in the UTF-8 high range; the result was [still excessive spacing between half-width characters](assets/display_old.png).
70
+
Given the high difficulty of finding or designing "tall, thin half-width monospaced Chinese character fonts" or "compatible full-width English letter fonts", font-cengluan adopts two design approaches:
71
+
72
+
1. Map all English letters, Arabic numerals, ASCII punctuation, and similar characters to full-width characters in the UTF-8 high range;
73
+
the spacing between half-width characters remains slightly large.
74
+
75
+

73
76
74
-
In the current solution, all half-width characters are scaled by an integer factor of two, while full-width characters are displayed at the original scaling ratio with complementary blank rows above and below.
77
+
2. Display all half-width characters with integer scaling doubled, while full-width characters are displayed at their original scaling ratio with padded blank lines above and below.

77
81
78
82
Although each full-width character is still separated on the right by a [32nd character](#the-32nd-character), font-cengluan achieves a relatively balanced visual appearance overall.
79
83
80
84
### The 32nd Character
81
85
82
86
In Linux TTY, the 32nd character of the default font is `U+20`, i.e., a space. This character is used to fill positions in the background where no character is present.
83
87
84
-
## Building the Font
88
+
## Get the Font
89
+
90
+
### Downloading the Font
91
+
92
+
-[Download the font](https://github.com/PJ-568/font-cengluan/releases/latest)
0 commit comments