diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-21 22:29:40 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-21 22:29:40 +1000 |
commit | f0fec34dc9c2dbc86dd424e4963983cbb2ed9b41 (patch) | |
tree | 9073336184d32365b861df91b2fc062c39e0fb15 /source/windowing/StarFuelWidget.cpp | |
parent | 865f9a328a9068c9917c52c387f27b3e102712bc (diff) |
The Fontpocalypse
I hate it
Diffstat (limited to 'source/windowing/StarFuelWidget.cpp')
-rw-r--r-- | source/windowing/StarFuelWidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/windowing/StarFuelWidget.cpp b/source/windowing/StarFuelWidget.cpp index 4206254..43ea3d5 100644 --- a/source/windowing/StarFuelWidget.cpp +++ b/source/windowing/StarFuelWidget.cpp @@ -10,6 +10,7 @@ FuelWidget::FuelWidget() { auto assets = Root::singleton().assets(); m_fontSize = assets->json("/interface.config:font.buttonSize").toInt(); + m_font = assets->json("/interface.config:font.defaultFont").toString(); m_fuelLevel = 0; m_maxLevel = 0; @@ -73,6 +74,7 @@ void FuelWidget::renderImpl() { auto& guiContext = GuiContext::singleton(); guiContext.setFontSize(m_fontSize); + guiContext.setFont(m_font); if (m_potential != 0) { guiContext.setFontColor(Color::White.toRgba()); } else if (m_fuelLevel == 0) { |