Made Fipps larger

This commit is contained in:
nclok1405 2025-07-02 16:45:32 +09:00
commit ea1c741fe7
2 changed files with 13 additions and 11 deletions

View file

@ -345,15 +345,16 @@ void OTRGlobals::Initialize() {
context->InitWindow(sohFast3dWindow);
auto overlay = context->GetInstance()->GetWindow()->GetGui()->GetGameOverlay();
// Currently, differently sized fonts require preloading (reloading font at runtime crashes the game)
// Currently, differently sized fonts require preloading
// (loading a font at any point after here crashes the game with "INVALID ACCESS TO STORAGE")
overlay->LoadFont("Press Start 2P", 12.0f, "fonts/PressStart2P-Regular.ttf");
overlay->LoadFont("Press Start 2P Normal", 24.0f, "fonts/PressStart2P-Regular.ttf");
overlay->LoadFont("Press Start 2P Large", 32.0f, "fonts/PressStart2P-Regular.ttf");
overlay->LoadFont("Press Start 2P X-Large", 40.0f, "fonts/PressStart2P-Regular.ttf");
overlay->LoadFont("Fipps", 24.0f, "fonts/Fipps-Regular.otf");
overlay->LoadFont("Fipps Normal", 32.0f, "fonts/Fipps-Regular.otf");
overlay->LoadFont("Fipps Large", 40.0f, "fonts/Fipps-Regular.otf");
overlay->LoadFont("Fipps X-Large", 48.0f, "fonts/Fipps-Regular.otf");
overlay->LoadFont("Fipps", 32.0f, "fonts/Fipps-Regular.otf");
overlay->LoadFont("Fipps Normal", 40.0f, "fonts/Fipps-Regular.otf");
overlay->LoadFont("Fipps Large", 48.0f, "fonts/Fipps-Regular.otf");
overlay->LoadFont("Fipps X-Large", 52.0f, "fonts/Fipps-Regular.otf");
LoadOverlayTextFont();
context->InitAudio({ .SampleRate = 32000, .SampleLength = 1024, .DesiredBuffered = 1680 });

View file

@ -514,12 +514,13 @@ void SohMenu::AddMenuSettings() {
AddWidget(path, "Overlay Text Font:", WIDGET_CVAR_COMBOBOX)
.CVar(CVAR_SETTING("OverlayTextFont"))
.RaceDisable(false)
.Options(ComboboxOptions()
.ComboMap(overlayTextFontOptions)
.Tooltip("Changes the font type of Overlay Text.")
.DefaultIndex(0)
.ComponentAlignment(ComponentAlignments::Right)
.LabelPosition(LabelPositions::Far))
.Options(
ComboboxOptions()
.ComboMap(overlayTextFontOptions)
.Tooltip("Changes the font type of Overlay Text.\nNote: Fipps is generally smaller than Press Start 2P")
.DefaultIndex(0)
.ComponentAlignment(ComponentAlignments::Right)
.LabelPosition(LabelPositions::Far))
.Callback([](WidgetInfo& info) { OTRGlobals::Instance->LoadOverlayTextFont(); });
AddWidget(path, "Test Overlay Text", WIDGET_BUTTON)
.RaceDisable(false)