ubuntu装好之后, 为浏览器firefox安装flash插件, 后来发现中文会变成方框。

如何解决?

输入:
cd /etc/fonts/conf.d/

为了安全,备份一下:

sudo cp 49-sansserif.conf 49-sansserif.conf_backup

输入如下指令:

sudo gedit ./49-sansserif.conf

此时文件显示内容。

将其中的第1、2、4个后面的sans-serif或者serif用你自己系统中支持中文的字体的名字代替,注意字体名字的大小写  (fc-list 查看安装的字体)

比如:我的系统中安装了Salem,我则用Salem代替上述所说的字段,结果如下:

<match target=”pattern”>
<test qual=”all” name=”family” compare=”not_eq”>
<string>Salem</string>
</test>
<test qual=”all” name=”family” compare=”not_eq”>
<string>Salem</string>
</test>
<test qual=”all” name=”family” compare=”not_eq”>
<string>monospace</string>
</test>
<edit name=”family” mode=”append_last”>
<string>Salem</string>
</edit>
</match>

相关文章:

  • 2021-11-09
  • 2021-10-25
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2022-03-05
猜你喜欢
  • 2021-12-22
  • 2021-10-21
  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
相关资源
相似解决方案