gpt4 book ai didi

windows - Pango-WARNING ** : couldn't load font ouldn't load font "Times Not-Rotated 18", 回落到 "Sans Not-Rotated 10px",期待丑陋的输出

转载 作者:行者123 更新时间:2023-12-04 08:23:05 25 4
gpt4 key购买 nike

我正在尝试运行包/软件“KUPDAP(京都大学等 ionic 体色散分析包)”,该包可以从 http://space.rish.kyoto-u.ac.jp/software/ 下载(下载可执行文件(Windows))。这是一个winrar文件。解压后,可以看到名为“kupdap”的文件。如果我点击那个,会出现一个窗口,如下所示:
enter image description here
如果您等待一段时间或单击关闭,则窗口变为:
enter image description here
在这个 GUI 中,我可以提供我的数据。但问题是在后台看到的 - 在命令提示符中,出现错误消息“(kupdap.exe:12988) Pango-WARNING **: could't load font ouldn't load font "Times Not-Rotated 18 ”,回到“Sans Not-Rotated 10px”,期待丑陋的输出”。因此,程序没有运行。
老实说,我从来没有听说过 pango。我猜测它与系统中的字体有关。我还附上了系统中字体(不是全部)的屏幕截图:
enter image description here
我已经浏览了这里列出的一些文章:https://github.com/lovell/sharp/issues/1162 ,但这些事情超出了我的脑海。
任何人都可以帮助我解决什么问题以及如何解决它? BTB,我使用的是 Windows 10。
提前致谢。

最佳答案

问题是kupdap正在使用硬编码为 Times 的默认字体.下面的片段是从 main 的开头复制的函数在 kupdap_source\visual\main1.c :

int main(int argc, char *argv[]){
GtkWidget *window, *vbox;
PangoFontDescription *p;

p = pango_font_description_from_string("Times 18"); // <--- this is what triggers error
gtk_init(&argc, &argv);

// create credit
GtkWidget *credit;
credit = gtk_about_dialog_new();
但是,默认的 Windows 安装没有名为 Times 的字体。 ,这就是导致 Pango-WARNING 的原因.有现货 Times New Roman字体,但 pango 似乎在做一个精确的字符串匹配,并忽略它。
可能的解决方法:
  • "Times 18""Times New Roman 18" (或其他有效的字体名称)在源代码中并重建程序;
  • 安装名为 Times 的字体在 Windows 中,以便 pango 找到它;
  • 十六进制编辑 kupdap.exe二进制并替换唯一出现的文本 Times使用已安装的另一种字体的 5 个字母名称,例如Arial .
  • 关于windows - Pango-WARNING ** : couldn't load font ouldn't load font "Times Not-Rotated 18", 回落到 "Sans Not-Rotated 10px",期待丑陋的输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65402213/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com