Finish LUS bump, including SoH-side fix for font free crash.

This commit is contained in:
Malkierian 2025-07-08 13:11:19 -07:00
commit dabd23a5ee
2 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit 5e33d3e7cd0396f847923cd6c471eaf324e90351
Subproject commit 7f737f8be9580980f5a1fe7784d6e1045f0309da

View file

@ -1678,7 +1678,9 @@ ImFont* OTRGlobals::CreateFontWithSize(float size, std::string fontPath) {
initData->Path = fontPath;
std::shared_ptr<Ship::Font> fontData = std::static_pointer_cast<Ship::Font>(
Ship::Context::GetInstance()->GetResourceManager()->LoadResource(fontPath, false, initData));
font = mImGuiIo->Fonts->AddFontFromMemoryTTF(fontData->Data, fontData->DataSize, size);
ImFontConfig fontConf;
fontConf.FontDataOwnedByAtlas = false;
font = mImGuiIo->Fonts->AddFontFromMemoryTTF(fontData->Data, fontData->DataSize, size, &fontConf);
}
// FontAwesome fonts need to have their sizes reduced by 2.0f/3.0f in order to align correctly
float iconFontSize = size * 2.0f / 3.0f;