Henrik Rydgård
|
6478f0dcad
|
SDL: Fix measuring of multi-line strings.
Also, a small related optimization on Windows.
|
2026-01-21 13:57:51 +01:00 |
|
Henrik Rydgård
|
8724f40c12
|
DrawText: Clamp strings to sane sizes.
|
2026-01-01 14:23:57 +01:00 |
|
Henrik Rydgård
|
1ea93e2913
|
Small refactor of text rect measurement. Add move/resize icons
|
2025-11-27 11:50:22 +01:00 |
|
Henrik Rydgård
|
582c2e28ca
|
Same for Qt
|
2025-11-09 08:52:21 +01:00 |
|
Henrik Rydgård
|
2fce2da709
|
Apply the font system rework to Android as well
|
2025-11-09 08:52:21 +01:00 |
|
Henrik Rydgård
|
4283e66a12
|
Font style rework: Windows part
|
2025-11-09 08:52:21 +01:00 |
|
Henrik Rydgård
|
6d1973edfb
|
Add banners on the top of settings pages, if editing game-specific settings show the icon.
|
2025-11-09 08:51:41 +01:00 |
|
Henrik Rydgård
|
2b6b951f78
|
Fix alpha in drawtext for RGBA8888 format.
Should fix #20879
|
2025-10-17 08:57:12 +02:00 |
|
Henrik Rydgård
|
b082e94edb
|
Initial work on using premultiplied alpha in the UI
|
2025-10-16 11:07:05 +02:00 |
|
Henrik Rydgård
|
531842f577
|
Add font cache stats to "internals" screen
|
2025-04-09 12:40:10 +02:00 |
|
Henrik Rydgård
|
e49d94ad11
|
Unify the MeasureString caching code
|
2024-10-16 14:39:21 +02:00 |
|
Henrik Rydgård
|
ce980af01e
|
TextDrawer: Improve performance for text wrapping (by measuring without wrapping first)
|
2024-10-16 13:35:32 +02:00 |
|
Henrik Rydgård
|
eccd7f3767
|
More const/static-ification
|
2024-09-17 15:22:37 +02:00 |
|
Henrik Rydgård
|
28cf69f67e
|
Remove duplicate code from the text rendering backends
|
2024-06-01 09:58:58 +02:00 |
|
Henrik Rydgård
|
d6b6d087c0
|
Make the font lifecycle more similar between the backends.
|
2024-06-01 09:43:11 +02:00 |
|
Henrik Rydgård
|
4051f34758
|
Implement MeasureStringRect generically based on MeasureString
|
2024-05-31 21:11:48 +02:00 |
|
Henrik Rydgård
|
06f7f39e3e
|
Unify SDL's version of the function too.
|
2024-05-31 19:23:47 +02:00 |
|
Henrik Rydgård
|
2061f04885
|
Also remove DrawString in the SDL text backend
|
2024-05-31 19:08:25 +02:00 |
|
Henrik Rydgård
|
533f8f06be
|
Unify DrawString between Windows, UWP and Android. More to come.
|
2024-05-31 17:27:59 +02:00 |
|
Henrik Rydgård
|
5999690af5
|
i18n: Remove our awkward ampersand-escape support, except in [DesktopUI]
|
2024-05-31 09:45:59 +02:00 |
|
Henrik Rydgård
|
021d2d5ef0
|
Scaling and line spacing work
|
2024-05-29 18:52:39 +02:00 |
|
Henrik Rydgård
|
0bbaaef787
|
Seems to be working now, though need to figure out which font face we can use.
|
2024-05-29 18:52:39 +02:00 |
|
Henrik Rydgård
|
7e7d1d587a
|
Start lifting up common parts to the base class
|
2024-05-29 18:52:39 +02:00 |
|
Henrik Rydgård
|
ccbcf1369b
|
Convert DrawString* functions to use std::string_view
|
2024-05-24 22:52:51 +02:00 |
|
Henrik Rydgård
|
804f31f424
|
Convert MeasureString* functions to use std::string_view
|
2024-05-24 14:16:40 +02:00 |
|
Henrik Rydgård
|
4b45bde38f
|
Convert WordWrapper to use std::string_view
|
2024-05-24 13:39:49 +02:00 |
|
Henrik Rydgård
|
f6ca8101e0
|
Start getting string_view into WordWrapper
|
2024-05-24 12:40:11 +02:00 |
|
Henrik Rydgård
|
8761bf2bc9
|
Move text rendering to Common.
|
2020-10-05 00:05:28 +02:00 |
|