在ubuntu中运行ddd时发出警告

在ubuntu中运行ddd时发出警告,ubuntu,ddd-debugger,Ubuntu,Ddd Debugger,我刚刚在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->S

我刚刚在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
似乎有很多人都遇到了这个问题,但我没能找到解决办法。这是基于谷歌搜索的


感谢您对解决此问题的任何帮助。

ddd中似乎存在与此相关的已知错误。看见基本上,它对安装的字体版本进行硬编码假设。这些假设并不适用于所有发行版


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

我安装了上述xfonts-100dpi软件包。重启后 (注销可能有效,但我没有尝试。), ddd的问题已经自行解决(见再见)

这是在Ubuntu 16.04LTS上

以下是所需的命令:

sudo apt get安装xfonts-100dpi

也许Ubuntu用户应该自动安装这些字体, 或者让ddd在安装ddd时拖动字体