From b019283a2f7bb5bb7e228ad87f178aed05639b3a Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 22 Jun 2023 17:56:09 +0200 Subject: [PATCH] impr: Force disable unicode support when the NoGPU version is used --- main/source/init/tasks.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main/source/init/tasks.cpp b/main/source/init/tasks.cpp index be00a966f..75250e084 100644 --- a/main/source/init/tasks.cpp +++ b/main/source/init/tasks.cpp @@ -302,7 +302,13 @@ namespace hex::init { } bool loadFonts() { - return loadFontsImpl(ContentRegistry::Settings::read("hex.builtin.setting.general", "hex.builtin.setting.general.enable_unicode", true)); + // Check if unicode support is enabled in the settings and that the user doesn't use the No GPU version on Windows + // The Mesa3D software renderer on Windows identifies itself as "VMware, Inc." + bool shouldLoadUnicode = + ContentRegistry::Settings::read("hex.builtin.setting.general", "hex.builtin.setting.general.enable_unicode", true) && + ImHexApi::System::getGPUVendor() != "VMware, Inc."; + + return loadFontsImpl(shouldLoadUnicode); } bool deleteSharedData() {