fix: Disable unicode support on the web version
This commit is contained in:
parent
5faf1380d7
commit
4db10f1c8b
@ -328,12 +328,16 @@ namespace hex::init {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool loadFonts() {
|
bool loadFonts() {
|
||||||
// Check if unicode support is enabled in the settings and that the user doesn't use the No GPU version on Windows
|
// Check if unicode support is enabled in the settings
|
||||||
// The Mesa3D software renderer on Windows identifies itself as "VMware, Inc."
|
|
||||||
bool shouldLoadUnicode =
|
bool shouldLoadUnicode =
|
||||||
ContentRegistry::Settings::read("hex.builtin.setting.general", "hex.builtin.setting.general.load_all_unicode_chars", false) &&
|
ContentRegistry::Settings::read("hex.builtin.setting.general", "hex.builtin.setting.general.load_all_unicode_chars", false) &&
|
||||||
ImHexApi::System::getGPUVendor() != "VMware, Inc.";
|
ImHexApi::System::getGPUVendor() != "VMware, Inc.";
|
||||||
|
|
||||||
|
// Force disable unicode support when using the mesa software renderer or any of the web renderers
|
||||||
|
const auto gpuVendor = ImHexApi::System::getGPUVendor();
|
||||||
|
if (gpuVendor == "VMware, Inc." || gpuVendor == "WebKit" || gpuVendor == "Mozilla")
|
||||||
|
shouldLoadUnicode = false;
|
||||||
|
|
||||||
return loadFontsImpl(shouldLoadUnicode);
|
return loadFontsImpl(shouldLoadUnicode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user