mirror of
https://github.com/YuleBest/FontMM.git
synced 2026-12-04 03:11:48 +08:00
fix(mono): 等宽字体改用独立文件 FontMM-Mono.ttf, 避免覆盖系统 DroidSansMono 导致 monospace 家族失效
This commit is contained in:
1 parent
3c618875a9
commit
389ed1ff2f
7 files changed
+16
-3
No files matched your search
+4
-3
@@ -57,10 +57,11 @@ fi
|
||||
|
||||
echo "[*] 处理等宽字体..."
|
||||
if [ -f "$FONTS_DIR/mono.ttf" ]; then
|
||||
install_from "$FONTS_DIR/mono.ttf" 'DroidSansMono.ttf'
|
||||
# 复制为模块独立文件 FontMM-Mono.ttf (不覆盖系统 DroidSansMono, 避免同名 overlay 失效)
|
||||
install_from "$FONTS_DIR/mono.ttf" 'FontMM-Mono.ttf'
|
||||
else
|
||||
echo "[-] 未设置等宽字体, 不覆盖系统 DroidSansMono.ttf"
|
||||
rm -f "$SYS_FONT_DIR/DroidSansMono.ttf"
|
||||
echo "[-] 未设置等宽字体, 不覆盖系统等宽字体"
|
||||
rm -f "$SYS_FONT_DIR/FontMM-Mono.ttf"
|
||||
fi
|
||||
|
||||
echo "[*] 全部完成, 重启后生效"
|
||||
@@ -226,6 +226,8 @@
|
||||
<alias name="ITC Stone Serif" to="serif" />
|
||||
|
||||
<family name="monospace">
|
||||
<!-- 用户等宽字体 (模块新建, 未设置时不存在则用系统 DroidSansMono 兜底) -->
|
||||
<font weight="400" style="normal">FontMM-Mono.ttf</font>
|
||||
<font weight="400" style="normal">DroidSansMono.ttf</font>
|
||||
</family>
|
||||
<alias name="sans-serif-monospace" to="monospace" />
|
||||
|
||||
@@ -226,6 +226,8 @@
|
||||
<alias name="ITC Stone Serif" to="serif" />
|
||||
|
||||
<family name="monospace">
|
||||
<!-- 用户等宽字体 (模块新建, 未设置时不存在则用系统 DroidSansMono 兜底) -->
|
||||
<font weight="400" style="normal">FontMM-Mono.ttf</font>
|
||||
<font weight="400" style="normal">DroidSansMono.ttf</font>
|
||||
</family>
|
||||
<alias name="sans-serif-monospace" to="monospace" />
|
||||
|
||||
@@ -226,6 +226,8 @@
|
||||
<alias name="ITC Stone Serif" to="serif" />
|
||||
|
||||
<family name="monospace">
|
||||
<!-- 用户等宽字体 (模块新建, 未设置时不存在则用系统 DroidSansMono 兜底) -->
|
||||
<font weight="400" style="normal">FontMM-Mono.ttf</font>
|
||||
<font weight="400" style="normal">DroidSansMono.ttf</font>
|
||||
</family>
|
||||
<alias name="sans-serif-monospace" to="monospace" />
|
||||
|
||||
@@ -226,6 +226,8 @@
|
||||
<alias name="ITC Stone Serif" to="serif" />
|
||||
|
||||
<family name="monospace">
|
||||
<!-- 用户等宽字体 (模块新建, 未设置时不存在则用系统 DroidSansMono 兜底) -->
|
||||
<font weight="400" style="normal">FontMM-Mono.ttf</font>
|
||||
<font weight="400" style="normal">DroidSansMono.ttf</font>
|
||||
</family>
|
||||
<alias name="sans-serif-monospace" to="monospace" />
|
||||
|
||||
@@ -226,6 +226,8 @@
|
||||
<alias name="ITC Stone Serif" to="serif" />
|
||||
|
||||
<family name="monospace">
|
||||
<!-- 用户等宽字体 (模块新建, 未设置时不存在则用系统 DroidSansMono 兜底) -->
|
||||
<font weight="400" style="normal">FontMM-Mono.ttf</font>
|
||||
<font weight="400" style="normal">DroidSansMono.ttf</font>
|
||||
</family>
|
||||
<alias name="sans-serif-monospace" to="monospace" />
|
||||
|
||||
@@ -226,6 +226,8 @@
|
||||
<alias name="ITC Stone Serif" to="serif" />
|
||||
|
||||
<family name="monospace">
|
||||
<!-- 用户等宽字体 (模块新建, 未设置时不存在则用系统 DroidSansMono 兜底) -->
|
||||
<font weight="400" style="normal">FontMM-Mono.ttf</font>
|
||||
<font weight="400" style="normal">DroidSansMono.ttf</font>
|
||||
</family>
|
||||
<alias name="sans-serif-monospace" to="monospace" />
|
||||
|
||||
Reference in new issue
Block a user