1
0
mirror of synced 2024-11-24 07:40:17 +01:00

fix: The font atlas does not own the custom font data

This commit is contained in:
WerWolv 2024-06-01 13:55:06 +02:00
parent bab1d2e27e
commit cf34c4bd95

View File

@ -237,6 +237,7 @@ namespace hex::plugin::builtin {
if (!fontFile.empty()) { if (!fontFile.empty()) {
if (!customFontData.empty()) { if (!customFontData.empty()) {
defaultConfig.FontDataOwnedByAtlas = false;
return fonts->AddFontFromMemoryTTF(customFontData.data(), customFontData.size(), 0, &defaultConfig, defaultGlyphRanges.Data); return fonts->AddFontFromMemoryTTF(customFontData.data(), customFontData.size(), 0, &defaultConfig, defaultGlyphRanges.Data);
} }
} }