Replies: 2 comments 2 replies
-
|
在 NixOS 上的 flatpak 程序也出现了这种情况,sans 和 monospace 有变化。在 fontconfig 根本没有配置,删除字体后并重装 flatpak 软件或清除对应软件 fontconfig 缓存后正常, flatpak/flatpak#1563 fonts.packages = with pkgs; [
carlito # like office default font
dejavu_fonts # like Bitstream Vera
noto-fonts # default font
ipafont
kochi-substitute
noto-fonts-cjk-sans
noto-fonts-cjk-serif
# Emoji
noto-fonts-color-emoji
noto-fonts-emoji-blob-bin
# code fonts
source-code-pro
cascadia-code
# English fonts Bitstream Vera
ttf_bitstream_vera
# other
## Chinese fonts
nur.repos.linyinfeng.plangothic
jigmo
lxgw-neoxihei # https://github.com/lxgw/LxgwNeoZhiSong https://tangled.org/pluie.me/flake/blob/main/packages/lxgw-neozhisong/package.nix TODO
nur.repos.ccicnce113424.lxgw-wenkai-gb lxgw-wenkai-tc
## code fonts
intel-one-mono
open-dyslexic
maple-mono.NF-CN maple-mono.NF-CN-unhinted maple-mono.NL-NF-CN maple-mono.NL-NF-CN-unhinted
maple-mono.Normal-NF-CN maple-mono.Normal-NF-CN-unhinted maple-mono.NormalNL-NF-CN maple-mono.NormalNL-NF-CN-unhinted
];
fonts.fontconfig.defaultFonts = {
monospace = [
"Noto Sans Mono"
"Noto Sans Mono CJK SC"
"DejaVu Sans Mono"
"IPAGothic"
];
sansSerif = [
"Noto Sans"
"Noto Sans CJK SC"
"IPAPGothic"
"DejaVu Sans"
];
serif = [
"Noto Serif"
"Noto Serif CJK SC"
"IPAPMincho"
"DejaVu Serif"
];
emoji = [
"Blobmoji"
"Noto Color Emoji"
];
};
services.flatpak.enable = true;
fonts.fontDir.enable = true; |
Beta Was this translation helpful? Give feedback.
2 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
包括但不限于微信默认字体,chrome的标签页、收藏和历史的字体。
下载的是本字体的.zip压缩包(maple.zip),解压到了/home/username/.local/share/fonts/maple下进行使用。终端和vscode等均可正常替换。
但上述问题其实很可能未必是字体导致的,因为我在安装系统后曾操作ibus等试图将自带的中文输入法修改为本字体,但发现间距过大不适合后作罢,然而当时由于没有设置备份快照等原因已难以复现。
通过修改~/.config/fontconfig/fonts.conf文件为:
后成功修改了微信字体,但chrome标签页等字体仍未修改(我确定chrome内部设置字体里没有maple mono nf cn,重新刷新字体缓存、删除chrome缓存后仍没有修改成功)。
删除本字体后情况恢复。
考虑到可能是fedora43的bug或其他原因,因此请字体开发者不要过分在意本issue,很可能是本人技术能力或者其他原因导致的。
现在仍在排查原因中。
Beta Was this translation helpful? Give feedback.
All reactions