0ad/source/ps
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
..
containers Fixes PS::StaticVector insert and adds more tests 2025-04-20 17:13:40 +02:00
GameSetup Stop running shrinking gcs & simplify GC logic. 2025-04-22 17:03:29 +02:00
scripting Add font engine aware of Gui.scale 2025-05-26 13:12:47 -05:00
tests Make the TaskManager a automatic livetime object 2024-11-17 18:03:49 +01:00
XMB Adapt 0 A.D. to SpiderMonkey ESR 102 2024-12-09 10:43:35 +01:00
XML Add CXeromycesEngine 2024-11-17 18:03:49 +01:00
algorithm.h Multicast chat messages 2024-12-27 19:32:03 +01:00
ArchiveBuilder.cpp Update trac links with gitea links 2024-12-10 11:29:48 +01:00
ArchiveBuilder.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
CacheLoader.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
CacheLoader.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
CConsole.cpp Fix a crash of the debug console 2025-05-22 20:31:28 +02:00
CConsole.h Don't store consecutive console commands twice 2025-05-16 17:38:41 +02:00
CLogger.cpp Removes GL code from the common GPU profiler. 2025-04-16 22:38:34 +02:00
CLogger.h Converge FileLogger with the other logger replacements 2024-07-06 14:48:44 +00:00
Compress.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Compress.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ConfigDB.cpp Use std::string_view in ConfigDB 2025-04-17 12:35:40 +02:00
ConfigDB.h Use std::string_view in ConfigDB 2025-04-17 12:35:40 +02:00
CStr.cpp Update trac links with gitea links 2024-12-10 11:29:48 +01:00
CStr.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
CStrForward.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
CStrIntern.cpp Explicitly default copy ctors for some classes 2024-09-28 21:55:30 +02:00
CStrIntern.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
CStrInternStatic.h Adds GPU skinning support via compute shaders. 2024-12-09 22:47:17 +01:00
DllLoader.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
DllLoader.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Errors.cpp Don't leak all GUI objects on name ambiguity following 5cc814759f and remove ERROR_GROUP GUI. 2019-10-11 16:20:50 +00:00
Errors.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
FileIo.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
FileIo.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Filesystem.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Filesystem.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Future.h Use std::variant in Future 2025-02-10 18:11:02 +01:00
FutureForward.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Game.cpp Stop running shrinking gcs & simplify GC logic. 2025-04-22 17:03:29 +02:00
Game.h Prevent players to reveal the map from GUI script 2024-12-27 19:01:53 +01:00
Globals.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Globals.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
GUID.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
GUID.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Hashing.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Hashing.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Hotkey.cpp Reduce allocations for GUI and Hotkeys. 2025-04-24 15:11:22 +02:00
Hotkey.h Reduce allocations for GUI and Hotkeys. 2025-04-24 15:11:22 +02:00
Joystick.cpp Fix a bunch of spelling mistakes 2025-04-11 06:24:32 +02:00
Joystick.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
KeyName.cpp Reduce allocations for GUI and Hotkeys. 2025-04-24 15:11:22 +02:00
KeyName.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Loader.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Loader.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Mod.cpp Remove internationalization of log messages 2024-08-05 15:27:12 +00:00
Mod.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ModInstaller.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ModInstaller.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ModIo.cpp Avoid segfault with curl 8.10/8.11 2025-01-06 06:59:14 +01:00
ModIo.h Fixes broken PCH after wraitii commits (4f972bc623, 0f60bf3a97) and Itms (833c9f108c). 2021-05-15 14:50:24 +00:00
Profile.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Profile.h Removes GL code from the common GPU profiler. 2025-04-16 22:38:34 +02:00
Profiler2.cpp Removes GL code from the common GPU profiler. 2025-04-16 22:38:34 +02:00
Profiler2.h Removes GL code from the common GPU profiler. 2025-04-16 22:38:34 +02:00
Profiler2GPU.cpp Removes GL code from the common GPU profiler. 2025-04-16 22:38:34 +02:00
Profiler2GPU.h Removes GL code from the common GPU profiler. 2025-04-16 22:38:34 +02:00
ProfileViewer.cpp Add font engine aware of Gui.scale 2025-05-26 13:12:47 -05:00
ProfileViewer.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Pyrogenesis.cpp Add a RC file to add metadata to the pyrogenesis executable 2024-08-28 23:37:36 +02:00
Pyrogenesis.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Replay.cpp Stop running shrinking gcs & simplify GC logic. 2025-04-22 17:03:29 +02:00
Replay.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
SavedGame.cpp Multiplayer saved games 2024-12-19 21:36:51 +01:00
SavedGame.h Multiplayer saved games 2024-12-19 21:36:51 +01:00
Singleton.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
TaskManager.cpp Make the TaskManager a automatic livetime object 2024-11-17 18:03:49 +01:00
TaskManager.h Make the TaskManager a automatic livetime object 2024-11-17 18:03:49 +01:00
TemplateLoader.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
TemplateLoader.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Threading.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Threading.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ThreadUtil.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
TouchInput.cpp Return by value from CCamera::BuildCameraRay 2024-11-17 20:27:58 +01:00
TouchInput.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
UniDoubler.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
UserReport.cpp Get config values without using return parameters 2025-04-09 12:51:21 +02:00
UserReport.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Util.cpp Replace uses of sprintf with sprintf_s/snprintf 2024-12-05 09:51:28 +01:00
Util.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
VideoMode.cpp Get config values without using return parameters 2025-04-09 12:51:21 +02:00
VideoMode.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
VisualReplay.cpp Replace usage of OSString().c_str() by OSString 2024-10-28 16:35:49 +01:00
VisualReplay.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
World.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
World.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00