fix(font): 字库生成器补 U+00B7 中点 — 修复 · 渲染豆腐块(M34)
GB2312 A1A4 经 Python gb2312 codec 解成 U+30FB(MiSans 无该字形 → 空条目), U+00B7 从未进入字符集;meow_font.c 对「码位不存在」画空心方块,故 format 副题 「Books/ · 595 本」、书行「TXT · 10.3MB」与 M31「· 读」徽标在真机全是豆腐。 build_charset 显式 add(0x00B7),common/gbk 档生效(full 档本已含)。 重生成 default 字库(28/20px,common):glyph 4110→4194——+U+00B7 1 个, 另 +83 平假名来自 8/30 tier 重构后 common 字符集扩展(设备字体早于该重构)。 既有 4110 字形两档像素逐字节一致;渲染代码 meow_font.c 未改。
This commit is contained in:
1 parent
e21cbc7865
commit
365c8f756b
1 file changed
+4
@@ -135,6 +135,10 @@ def build_charset(tier="common", extra=""):
|
|||||||
add(ord(bytes([hi, lo]).decode("gb2312")))
|
add(ord(bytes([hi, lo]).decode("gb2312")))
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
pass
|
pass
|
||||||
|
# 显式补 U+00B7(MIDDLE DOT):Python 的 gb2312 codec 把 GB2312 A1A4 解成
|
||||||
|
# U+30FB(片假名中点),而 MiSans 无 U+30FB 字形 → 该槽位是空条目,U+00B7 从未进库,
|
||||||
|
# 真机渲染成 tofu。format 副题「Books/ · 595 本」与「· 读」徽标依赖此码位。
|
||||||
|
add(0x00B7)
|
||||||
if tier in ("gbk", "full"):
|
if tier in ("gbk", "full"):
|
||||||
# CJK 统一表意(含常用简繁/生僻):U+4E00-9FFF ≈ 2万+
|
# CJK 统一表意(含常用简繁/生僻):U+4E00-9FFF ≈ 2万+
|
||||||
for cp in range(0x4E00, 0xA000):
|
for cp in range(0x4E00, 0xA000):
|
||||||
|
|||||||
Reference in new issue
Block a user