fix: The font atlas does not own the custom font data
This commit is contained in:
parent
bab1d2e27e
commit
cf34c4bd95
@ -237,6 +237,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
if (!fontFile.empty()) {
|
||||
if (!customFontData.empty()) {
|
||||
defaultConfig.FontDataOwnedByAtlas = false;
|
||||
return fonts->AddFontFromMemoryTTF(customFontData.data(), customFontData.size(), 0, &defaultConfig, defaultGlyphRanges.Data);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user