Commit Graph
17 Commits
Author SHA1 Message Date
Henrik Rydgård 81c642e2b2 Fix scaling issues in cocoa text drawer 2024-06-01 13:44:11 +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 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 2061f04885 Also remove DrawString in the SDL text backend 2024-05-31 19:08:25 +02:00
Henrik Rydgård 423f7620dd Also implement for Cocoa. 2024-05-31 19:00:23 +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 5f4257bf4a Get it to build and run on iOS too, not just Mac. There's some odd DPI issue though. 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 3965c1ae6b Start implementing cocoa-based text rendering. Doesn't work yet, renders garbage. 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
Hoe Hao Cheng 2b826b5614 SDL: implement TextDrawer using SDL2_ttf 2023-07-25 13:05:32 +08:00
Henrik RydgårdandGitHub 8b431b39ba Wrap the display globals in a struct (#16998)
* Wrap the display globals in a struct

Makes it easier to search/replace these, for future refactorings.

* Some renaming

* Qt buildfix, also fix the Qt build on Mac (got broken with battery changes)

* Attempt at buildfixing ios

* UWP buildfix
2023-02-25 13:09:44 +01:00
Henrik Rydgård 8761bf2bc9 Move text rendering to Common. 2020-10-05 00:05:28 +02:00