Henrik Rydgård and Claude Opus 5.5
dc1e9e50fc
TextDrawer: Measure in a given style without switching fonts
...
Measuring took the current font and scale, so UIContext switched to the
style being measured and back. On first draw the font to switch back to
could be an empty one, which the UWP drawer asserts on.
MeasureString and MeasureStringRect now take the style and scale, and the
backends' MeasureStringInternal measures in the style it's given.
SetOrCreateFont, which sets the font drawing uses, is shared, and the
backends only implement EnsureFont, which creates a font if needed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-27 11:45:04 +01:00
Henrik Rydgård
8cd7e1b2c0
Delete all support for Qt
...
Our Qt backend has long been left behind and doesn't even support Vulkan
currently. There would be a lot of work to make it viable, and I don't
think anyone is really interested.
ImGui on SDL will soon fulfill the need for a more classic user interface
with a menu bar on Linux, and on Mac we already have a native UI.
2026-08-08 18:18:28 +02:00
Henrik Rydgård
b2faec0533
Windows: Restore the GDI-based text drawer, use it if RenderDoc is attached
...
The D2D-based text renderer requires a D3D11 context, which confuses
RenderDoc (it doesn't permit multiple 3D APIs in the same process).
So, let's restore the old GDI renderer and use it if RenderDoc is attached.
See #21638
2026-05-20 10:25:29 +02:00
Henrik Rydgård
3aa4714ce0
Merge draw_text_win with draw_text_uwp.
2026-05-18 14:11:22 +02:00
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
59ab9e5682
Fix font loading in cocoa as well.
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
580cd954e0
Fix another carriage-return-related bug in the Android code.
2025-03-29 19:12:32 +01:00
Henrik Rydgård
82f6ff5170
Fix reported line break issue on Windows
2025-03-29 18:48:27 +01:00
Henrik Rydgård
55aa1ff66e
Warning fixes
2024-11-06 11:59:34 +01:00
Henrik Rydgård
a6a189c24d
An old version of android had strict JNI validation of UTF-8 strings enabled. Let's pass it.
2024-10-22 11:02:26 +02:00
Henrik Rydgård
e49d94ad11
Unify the MeasureString caching code
2024-10-16 14:39:21 +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
5b0007f391
Remove unused and broken text rotation code
2024-05-31 20:58:53 +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
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
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
0fc3e2b777
Add string_view support to more UTF functions
2024-01-12 14:03:02 +01:00
Henrik Rydgård
6b75bbf64a
Add support for line breaks in TextDrawerWin32::MeasureString. Sometimes useful.
...
And actually consistent with the other backends.
2023-07-16 21:58:47 +02:00
Unknown W. Brackets
9cfcbc46e6
Global: Cleanup initialization/pointer checks.
...
Cleaning up a lot of cases of uninitialized data, unchecked return values
for failures, and similar.
2022-12-10 21:13:36 -08:00
Unknown W. Brackets
799a4de23e
Windows: Improve rect measurement precision.
...
Not seeing issues here like Android, but let's make them match.
2021-09-25 08:02:58 -07:00
Unknown W. Brackets
13ec384dbe
Build: Explicitly include ppsspp_config.h.
...
This adds it to all files that use it. Not all our builds include the
file.
2021-03-02 21:04:03 -08:00
Henrik Rydgård
8761bf2bc9
Move text rendering to Common.
2020-10-05 00:05:28 +02:00