1
0
mirror of synced 2024-11-12 10:10:53 +01:00

fix: Unifont not being loaded correctly in some cases

Fixes #1155
This commit is contained in:
WerWolv 2023-06-24 14:55:10 +02:00
parent 13599908f8
commit ddc0457d9a

View File

@ -269,8 +269,7 @@ namespace hex::init {
cfg.GlyphOffset = ImVec2(0, 0);
// Add unifont if unicode support is enabled
if (loadUnicode)
fonts->AddFontFromMemoryCompressedTTF(unifont_compressed_data, unifont_compressed_size, 0, &cfg, ranges.Data);
fonts->AddFontFromMemoryCompressedTTF(unifont_compressed_data, unifont_compressed_size, 0, &cfg, ranges.Data);
// Try to build the font atlas
if (!fonts->Build()) {