Use a 110-glyph minimal font tier for ASCII documents

This commit is contained in:
gloamxun committed 2026-10-19 22:49:30 +08:00
1 parent 769e3cdf17
commit 9b367e87ee
16 files changed
+64 -14

No files matched your search

+23 -10
View File
@@ -3138,17 +3138,30 @@ fn builtin_safe_char(ch: char) -> bool {
fn minimal_subset_safe_char(ch: char) -> bool {
let code = ch as u32;
matches!(code,
0x09..=0x0A
0x09
| 0x0A
| 0x20..=0x7E
| 0xA0..=0xFF
| 0x370..=0x3FF
| 0x2000..=0x206F
| 0x2070..=0x209F
| 0x20A0..=0x20CF
| 0x2100..=0x214F
| 0x2190..=0x21FF
| 0x2200..=0x22FF
| 0x25A0..=0x25FF
| 0xA0
| 0xA9
| 0xAE
| 0xB0
| 0xB1
| 0xB5
| 0xB7
| 0xD7
| 0x2013
| 0x2014
| 0x2018
| 0x2019
| 0x201C
| 0x201D
| 0x2022
| 0x2026
| 0x00B2..=0x00B3 | 0x00B9
| 0x2070..=0x2079
| 0x223C
| 0x2248
| 0x03BC
| 0xF0000..=0xFFFFF
)
}