无法使用 photon-gui 启动 gvim(找不到有效字体)

发布于 2024-08-06 09:10:10 字数 246 浏览 2 评论 0原文

我在尝试让 gvim 7.2 在 QNX6.4.1 和 Photon 下工作时遇到问题。每次我 尝试启动它,我收到以下错误:

E665:无法启动 GUI,找不到有效字体

,而是得到控制台 vim。我认为我的 Photon 有问题 配置,或者 gvim 配置。正如我已经写过的,我一直在使用 Photon,没有使用 xorg 或 xfree。我想我需要的只是为 gvim 指定字体路径,但不知道在 Photon 下如何。

谢谢

I'm having a problem trying to get gvim 7.2 working under QNX6.4.1 and Photon. Every time I
try to start it I get the following error:

E665: Cannot start GUI, no valid font found

and I get the console vim instead. I think I've problem with my Photon
configuration, or gvim configuration. As I already wrote, I've been using Photon, no xorg or xfree. I suppose that all I need is to specify font path for gvim, but don't know how under Photon.

thx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

半衾梦 2024-08-13 09:10:10

在这里复活一个古老的线程,因为我找到了一个有效的不同解决方案。

yum -y install ghostscript

添加了一些依赖项,

(1/5): ghostscript-8.70-21.el6.x86_64.rpm                                              | 4.4 MB     00:00
(2/5): ghostscript-fonts-5.50-23.2.el6.noarch.rpm                                      | 590 kB     00:00
(3/5): libXfont-1.4.5-5.el6_7.x86_64.rpm                                               | 137 kB     00:00
(4/5): urw-fonts-2.4-10.el6.noarch.rpm                                                 | 3.1 MB     00:00
(5/5): xorg-x11-font-utils-7.2-11.el6.x86_64.rpm                                       |  75 kB     00:00

其中关键的是 Ghostscript-fonts 和 libXfont,它们安装了一些基本字体并为 X11 配置它们。

我之所以将这个解决方案放在这里,是因为

E665: Cannot start GUI, no valid font found

当我尝试在 X 上以相同的配置调用 gvim 时,也收到了错误消息。

Resurrecting an ancient thread here because I found a different solution that worked.

yum -y install ghostscript

which added some dependencies

(1/5): ghostscript-8.70-21.el6.x86_64.rpm                                              | 4.4 MB     00:00
(2/5): ghostscript-fonts-5.50-23.2.el6.noarch.rpm                                      | 590 kB     00:00
(3/5): libXfont-1.4.5-5.el6_7.x86_64.rpm                                               | 137 kB     00:00
(4/5): urw-fonts-2.4-10.el6.noarch.rpm                                                 | 3.1 MB     00:00
(5/5): xorg-x11-font-utils-7.2-11.el6.x86_64.rpm                                       |  75 kB     00:00

The critical ones were ghostscript-fonts and libXfont, which installed a few basic fonts and configured them for X11.

I'm putting this solution here because of the error message

E665: Cannot start GUI, no valid font found

which i also got when trying to invoke gvim in that same configuration over X.

七分※倦醒 2024-08-13 09:10:10

.vimrc 文件中添加以下内容,vim 提示 632:

if has("gui_running")
  if has("gui_photon")
    set guifont=Courier\ New:s11
  endif
endif

Add the following in your .vimrc file, this is explained in vim tip 632:

if has("gui_running")
  if has("gui_photon")
    set guifont=Courier\ New:s11
  endif
endif
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文