Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default font Arial Regular has a different name on systems with a foreign locale. #10

Open
paulhoux opened this issue Mar 17, 2020 · 0 comments

Comments

@paulhoux
Copy link

Hi,

I noticed that the default font is hard-coded to be Arial Regular, yet for some reason my system's locale was set to German (de-DE) and it reported the font names as "Arial Standard", "Arial Kurziv" (italic) and "Arial Fett" (bold). It required a change to the system's locale and a shutdown + boot to reset this back to "Arial Regular". See also: https://www.isunshare.com/windows-10/change-system-locale-in-windows-10.html

This causes a crash on startup, also due to a bug in FontManager.cpp where it does not return a proper error if SystemFonts::getFontBuffer() returns a nullptr.

I don't know how to obtain localized font names properly, instead of using hard-coded names. So we may be out of luck on this one. But I just thought I'd mention it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant