0ad/source/gui
trompetin17 bdd94bd264
Add font engine aware of Gui.scale
This commit enhances text rendering by leveraging FreeType and a dynamic
font atlas. Previously, GUI scaling relied on bitmap fonts, which led to
blurry and distorted text when scaling up. Now, we scale the font size
directly using FreeType, resulting in much sharper and more readable
text at any GUI scale.

Key improvements:
- Replaced bitmap font scaling with true font size scaling via FreeType.
- Reduced glyph cache dependency on fixed positions, relying on shader
  scaling instead.
- Switched to float-based glyph positioning for more accurate rendering
  and scaling.

These changes ensure clean and consistent text appearance across
different GUI scales.
2025-05-26 13:12:47 -05:00
..
ObjectBases Add font engine aware of Gui.scale 2025-05-26 13:12:47 -05:00
ObjectTypes Get config values without using return parameters 2025-04-09 12:51:21 +02:00
Scripting Rename PushGuiPage to OpenChildPage 2025-03-09 10:39:20 +01:00
SettingTypes Add font engine aware of Gui.scale 2025-05-26 13:12:47 -05:00
tests Add font engine aware of Gui.scale 2025-05-26 13:12:47 -05:00
CGUI.cpp Upgrade SpiderMonkey to ESR 115 2024-12-09 10:46:12 +01:00
CGUI.h Add scrollpanel widget 2024-11-12 15:01:42 -05:00
CGUIScrollBarHorizontal.cpp Add scrollpanel widget 2024-11-12 15:01:42 -05:00
CGUIScrollBarHorizontal.h Add scrollpanel widget 2024-11-12 15:01:42 -05:00
CGUIScrollBarVertical.cpp Add scrollpanel widget 2024-11-12 15:01:42 -05:00
CGUIScrollBarVertical.h Add scrollpanel widget 2024-11-12 15:01:42 -05:00
CGUISetting.cpp Add scrollpanel widget 2024-11-12 15:01:42 -05:00
CGUISetting.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
CGUISprite.cpp Add font engine aware of Gui.scale 2025-05-26 13:12:47 -05:00
CGUISprite.h Add font engine aware of Gui.scale 2025-05-26 13:12:47 -05:00
CGUIText.cpp Add font engine aware of Gui.scale 2025-05-26 13:12:47 -05:00
CGUIText.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
GUIManager.cpp Reduce allocations for GUI and Hotkeys. 2025-04-24 15:11:22 +02:00
GUIManager.h Reduce allocations for GUI and Hotkeys. 2025-04-24 15:11:22 +02:00
GUIObjectEventBroadcaster.h Add scrollpanel widget 2024-11-12 15:01:42 -05:00
GUIObjectTypes.cpp Add scrollpanel widget 2024-11-12 15:01:42 -05:00
GUIRenderer.cpp Add font engine aware of Gui.scale 2025-05-26 13:12:47 -05:00
GUIRenderer.h Add font engine aware of Gui.scale 2025-05-26 13:12:47 -05:00
GUIStringConversions.cpp Add scrollpanel widget 2024-11-12 15:01:42 -05:00
GUITooltip.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
GUITooltip.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
IGUIScrollBar.cpp Add scrollpanel widget 2024-11-12 15:01:42 -05:00
IGUIScrollBar.h Add scrollpanel widget 2024-11-12 15:01:42 -05:00
SGUIIcon.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
SGUIMessage.h Add scrollpanel widget 2024-11-12 15:01:42 -05:00
SGUIStyle.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00