Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
teli
V2EX  ›  Linux

flatapk 和 AppImage 打包的 Wine 应用中文变方框了,怎么解决?

  •  
  •   teli · Apr 24, 2023 · 2005 views
    This topic created in 1123 days ago, the information mentioned may be changed or developed.

    昨天从 fedora 37 升级到 fedora 38 。
    今天发现这个问题。
    尝试了安装 wqy 字体,没解决。

    Supplement 1  ·  Apr 24, 2023
    安装了几个字体,解决了 flat 应用的中文问题。
    AppImage 应用的中文问题,改为使用该应用的 snap 版……
    期待 AppImage 应用中文问题的解决方案
    2 replies    2023-04-24 21:52:31 +08:00
    skiy
        1
    skiy  
       Apr 24, 2023
    /etc/fonts/fonts.conf 增加个中文字体看看?

    1. 找到想要设置的默认字体,比如“思源黑体”,其名称为“Source Han Sans SC VF”
    2. 将内容添加到 /etc/fonts/fonts.conf 文件指定的位置:

    <!-- custom
    自定义 思源黑体:Source Han Sans SC VF
    -->
    <match target="pattern">
    <test qual="any" name="family">
    <string>Source Han Sans</string>
    </test>
    <edit name="family" mode="prepend">
    <string>Source Han Sans SC VF</string>
    </edit>
    </match>

    3. 执行 sudo fc-cache -fv 生成字体缓存
    4. 注销当前用户,或者重启系统
    teli
        2
    teli  
    OP
       Apr 24, 2023
    @skiy 只能手动修改这个文件吗?不能一条命令下去,自动更新它?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   927 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 21:56 · PVG 05:56 · LAX 14:56 · JFK 17:56
    ♥ Do have faith in what you're doing.