【问题标题】:warning when running ddd in ubuntu在 ubuntu 中运行 ddd 时出现警告
【发布时间】:2015-09-12 00:13:41
【问题描述】:

我刚刚在 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

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

感谢您提供解决问题的任何帮助。

【问题讨论】:

    标签: ubuntu ddd-debugger


    【解决方案1】:

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

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

    【讨论】:

      【解决方案2】:

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

      这是在 Ubuntu 16.04LTS 上。

      这是所需的命令:

      sudo apt-get install xfonts-100dpi

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

      【讨论】:

        猜你喜欢
        • 2022-11-09
        • 2019-11-27
        • 2018-10-21
        • 1970-01-01
        • 2020-08-04
        • 1970-01-01
        • 2018-03-11
        • 2019-06-15
        • 1970-01-01
        相关资源
        最近更新 更多