mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
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. |
||
|---|---|---|
| .. | ||
| CGUIColor.cpp | ||
| CGUIColor.h | ||
| CGUIHotkey.cpp | ||
| CGUIHotkey.h | ||
| CGUIList.h | ||
| CGUISeries.h | ||
| CGUISize.cpp | ||
| CGUISize.h | ||
| CGUIString.cpp | ||
| CGUIString.h | ||
| EAlign.h | ||
| EScrollOrientation.h | ||
| MouseEventMask.cpp | ||
| MouseEventMask.h | ||