字体配置错误:“/etc/fonts/local.conf”,第 19 行:标签不匹配

字体配置错误:“/etc/fonts/local.conf”,第 19 行:标签不匹配

当我尝试从终端运行某些命令时,我注意到了这个错误。例如

~ ❯❯❯ emacs --debug-init
Fontconfig error: "/etc/fonts/local.conf", line 19: mismatched tag
Fontconfig error: "/etc/fonts/local.conf", line 19: invalid attribute 'name'
Fontconfig error: "/etc/fonts/local.conf", line 19: invalid attribute 'mode'
Fontconfig error: "/etc/fonts/local.conf", line 19: invalid attribute 'target'

~ ❯❯❯ fc-cache -fv
Fontconfig error: "/etc/fonts/local.conf", line 19: mismatched tag
Fontconfig error: "/etc/fonts/local.conf", line 19: invalid attribute 'name'
Fontconfig error: "/etc/fonts/local.conf", line 19: invalid attribute 'mode'
Fontconfig error: "/etc/fonts/local.conf", line 19: invalid attribute 'target'
/usr/share/fonts: caching, new cache contents: 0 fonts, 7 dirs
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 6 dirs
/usr/share/fonts/X11/100dpi: caching, new cache contents: 358 fonts, 0 dirs
/usr/share/fonts/X11/75dpi: caching, new cache contents: 358 fonts, 0 dirs
/usr/share/fonts/X11/Type1: caching, new cache contents: 116 fonts, 0 dirs
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/misc: caching, new cache contents: 89 fonts, 0 dirs
/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
...

这是 /etc/fonts/local.con

───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: /etc/fonts/local.conf
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ <?xml version="1.0"?>
   2   │ <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
   3   │ <fontconfig>
   4   │   <match target="font">
   5   │     <edit name="antialias" mode="assign">
   6   │       <bool>true</bool>
   7   │     </edit>
   8   │     <edit name="hinting" mode="assign">
   9   │       <bool>true</bool>
  10   │     <edit mode="assign" name="rgba">
  11   │       <const>rgb</const>
  12   │     </edit>
  13   │     <edit mode="assign" name="hintstyle">
  14   │       <const>hintslight</const>
  15   │     </edit>
  16   │     <edit mode="assign" name="lcdfilter">
  17   │       <const>lcddefault</const>
  18   │     </edit>
  19   │   </match>
  20   │ </fontconfig>
───────┴────────────────────

知道从哪儿开始吗?

相关内容