10

我刚刚在 Ubuntu 14.04 LTE 上安装了 ddd。如果我在命令行上运行它,我会收到以下警告:

user@user-VirtualBox:~/projects/myproject$ ddd
Warning: Cannot convert string "-*-helvetica-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
(Annoyed?  Try 'Edit->Preferences->General->Suppress X Warnings'!)
Warning: Cannot convert string "-*-helvetica-medium-r-*-*-*-100-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-lucidatypewriter-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-lucidatypewriter-bold-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-*-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-bold-*-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-*-180-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-symbol-*-*-*-*-*-120-*-*-*-*-adobe-*" to type FontStruct
Warning: Could not load font "-*-lucidatypewriter-medium-*-*-*-*-120-*-*-*-*-iso8859-*", using font "fixed" instead
Warning: Could not load font "-*-lucidatypewriter-medium-r-*-*-*-120-*-*-*-*-iso8859-*", using font "fixed" instead
Warning: Could not load font "-*-lucidatypewriter-bold-*-*-*-*-120-*-*-*-*-iso8859-*", using font "fixed" instead

好像有很多人遇到这个问题,但我无法找到解决方案。这是基于谷歌搜索。

解决问题的任何帮助表示赞赏。

4

2 回答 2

5

ddd 中似乎有一个与此相关的已知错误。请参阅https://lists.gnu.org/archive/html/ddd/2012-05/msg00001.html。基本上,它对安装的字体版本做出了硬编码假设。这些假设不适用于所有发行版。

对于 Debian 系统,安装 xfonts-100dpi 然后注销并重新登录应该可以消除这些消息。如果不是,您可能会受到上述问题的影响。

于 2015-10-10T21:17:46.157 回答
4

我安装了上面提到的 xfonts-100dpi 包。重新启动后(注销可能有效,但我没有尝试过。),ddd 的问题已经解决(再见。8 ^ })。

这是在 Ubuntu 16.04LTS 上。

这是所需的命令:

sudo apt-get install xfonts-100dpi

也许 Ubuntu 的人应该要么自动安装这些字体,要么在安装 ddd 时让 ddd 拖动字体。

于 2016-12-19T18:44:13.350 回答