Qt error: qt.qpa.fonts: Unable to open default EUDC font: "C:\\WINDOWS\\FONTS\\EUDC.TTE"

Qt error: qt.qpa.fonts: Unable to open default EUDC font: "C:\\WINDOWS\\FONTS\\EUDC.TTE"

每次我 运行 一个 PySide2/6 应用程序时,我都会在终端中打印以下错误:

qt.qpa.fonts: Unable to open default EUDC font: "C:\WINDOWS\FONTS\EUDC.TTE"

我的 PC 注册表配置似乎有误,Qt 试图找到一种名为 EUDC.TTF 字体的字体,但该字体不存在。 https://bugreports.qt.io/browse/PYSIDE-1620

我遇到了同样的问题,这个 comment from this bugreport 帮助了:

I have fixed it editing \HKEY_CURRENT_USER\EUDC52 (1252 is the code of the latin alphabet) "SystemDefaultEUDCFont" key value to "C:\Windows\Fonts\seguibli.TTF" (for Segoe UI font) which it seems like it is the default windows font.