3

我最近在我的 Mac 上设置了一个 Parallels VM,并使用 Arch Linux 作为操作系统。我按照这些说明设置了 Arch(除了在完成其他所有操作之前我没有安装大部分字体)。

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

在此处输入图像描述

我尝试使用此处推荐的流程对其进行修复:

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)可以正确显示它们的字体字母,完全没有问题。

如何使字体显示?

在此先感谢,特别是对于任何给我清晰而简单的可操作答案的答案,而不仅仅是一般原则!

4

2 回答 2

3

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

sudo rm /var/cache/fontconfig/*
rm ~/.cache/fontconfig/*
于 2020-03-13T20:07:08.860 回答
0

同样在这里 这是 cmd 结果

    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
于 2020-03-02T14:57:10.603 回答