如何让 Arch Linux 上的 Snap Store 字体显示为文本而不是空矩形?

How do I make Snap Store fonts on Arch Linux display as text and not as empty rectangles?

我最近在 Mac 上设置了一个 Parallels VM,Arch Linux 作为 OS。我按照 these directions to set up Arch 进行操作(除非我在完成其他所有操作后才安装大部分字体)。

然后我安装了Snapcraft Snap Store。但是,当我打开 Snap Store 时,没有显示 Snap Store 的字体。我只看到空的矩形而不是字母。

我尝试修复它 using the recommended processes here:

sudo rm -v /var/cache/fontconfig/*
fc-cache -r

...但即使在立即重启后,这些对我也没有任何帮助。但比 Snap Store 不工作更糟糕的是,我正在创建的 Snap 应用程序(这是我开始安装 Arch 的全部原因)也无法在 Arch 上显示任何字体字母,并且只显示空矩形。

Snap Store 和我自己的 Snap 应用程序在我的 Ubuntu、Fedora 和 Manjaro 的 Parallels VM 上都可以完美地显示字体字母。只是我的自定义 Arch 安装不会显示它们。此外,除了 Snap Store,我在 Arch VM 上安装的其他应用程序(如 Chromium 和 Opera)都可以正确显示其字体字母,完全没有问题。

如何显示字体?

提前致谢,特别是任何能给我清晰简单的可操作答案而不仅仅是一般原则的答案!

这里也一样 这是命令结果

    14:53:24:0686 Gs  enabled plugins: odrs, rewrite-resource, snap, icons, key-colors, key-colors-metadata
    14:53:24:0686 Gs  disabled plugins: appstream, desktop-categories, desktop-menu-path, dpkg, dummy, epiphany, fedora-pkgdb-collections, generic-updates, hardcoded-blacklist, hardcoded-featured, hardcoded-popular, modalias, os-release, provenance, provenance-license, repos, shell-extensions
    14:53:24:0796 Gs  failed to create an app for */*/*/*/system/*
    14:53:24:0816 Gs  updates-shell: failed to get updates: no plugin could handle get-updates
    14:53:24:0816 Gs  failed to create an app for */*/*/*/system/*
    14:53:24:0816 Gs  failed to get system app
    14:53:24:0816 Gs  failed to convert URL to GsApp: no application was created for running url-to-app with dedupe-flags=7 with refine-flags=require-license,require-url,require-size,require-version,require-history,require-setup-action,require-origin,require-related,require-menu-path,require-allow-packages,require-provenance,require-icon,require-permissions,require-origin-hostname,require-runtime,require-screenshots,require-categories,require-project-group,require-developer-name,require-kudos,content-rating with timeout=60 with search=file:///home/charshell/%25U on plugin=snap
    14:53:24:0817 Gs  Only 0 apps for recent list, hiding
    14:53:25:0828 GLib g_path_get_basename: assertion 'file_name != NULL' failed
    14:53:25:0828 GLib g_regex_match_full: assertion 'string != NULL' failed
    14:53:25:0828 GLib g_path_get_basename: assertion 'file_name != NULL' failed
    14:53:25:0828 GLib g_regex_match_full: assertion 'string != NULL' failed
    14:53:26:0019 Gs  hiding category audio-video featured applications: found only 0 to show, need at least 9
    14:53:26:0163 Gs  hiding category graphics featured applications: found only 0 to show, need at least 9
    14:53:26:0355 GsPluginSnap Failed to load snap icon: local snap has no icon
    14:53:26:0878 GsPluginSnap Failed to load snap icon: local snap has no icon

我能够使用以下命令解决此问题,运行 在终端中:

sudo rm /var/cache/fontconfig/*
rm ~/.cache/fontconfig/*