1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00
Commit Graph

81 Commits

Author SHA1 Message Date
Aaron van Geffen
039d0ef1a7 Move CSChar and UnicodeChar namespaces to their own headers 2024-07-12 23:02:31 +02:00
Aaron van Geffen
c4eede9767 Move CS_SPRITE_FONT_OFFSET to Font.cpp, its only user 2024-07-12 22:32:12 +02:00
Aaron van Geffen
51bcbe3710 Move UTF8 functions from localisation into core (#22278) 2024-07-12 19:21:15 +03:00
James103
1d8dc111f1 Replace 2023 with 2024 in copyright headers (#21139)
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
Aaron van Geffen
d425e0a8bb Remove const qualifier from constexpr statements 2023-06-24 11:45:26 +02:00
Michael Steenbeek
20fe5a29d3 Add missing Ukrainian letters (Єє and Ґґ) 2023-06-18 23:44:44 +02:00
Michael Steenbeek
1b612b5a99 Add code to draw Cyrillic characters Ѕѕ, Іі, Її, and Јј (#20393) 2023-06-15 20:30:02 +02:00
Michael Steenbeek
777d43ae18 Add W and Y with circumflex 2023-02-23 10:56:37 +01:00
Duncan
859b071ddc Rename classes with snakes OpenRCT2/A*-F* (#19215)
* Rename classes with snakes OpenRCT2/A*-F*

* Clang format files
2023-01-19 08:16:44 +00:00
Hielke Morsink
6b7dc8fcdb Rename snake_case functions in openrct2/src folder
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2023-01-17 13:24:51 +01:00
Michael Steenbeek
b4480b344e Rename snake_case functions from localisation folder 2023-01-16 23:12:35 +00:00
Duncan
8504c8d05e Finish Removing snake_case from Drawing Methods 2023-01-16 22:31:34 +00:00
Duncan
7f5934cc95 Remove snake_case from second chunk of Drawing (#19166) 2023-01-16 18:52:17 +00:00
James103
73738bbdc8 Replace 2022 with 2023 in copyright headers
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
Gymnasiast
14f9a75e0a Refactor FontSpriteBase and font size into FontStyle 2022-10-19 11:59:26 +02:00
Gymnasiast
9ca9412205 Refactor Dark/ExtraDark into its own structure 2022-10-19 11:57:33 +02:00
Michael Steenbeek
6fe19878f6 More ImageId cleanup (#18258)
* Remove more usages of uint32 image indices

* Remove unused gfx_get_sprite_size()

* Remove uint32 images from text drawing

* Remove now-unused ImageId overload

* Default-initialise ttfRunIndex

* Suppress false-alarm GCC error
2022-10-10 19:42:40 +01:00
73
b9e677945d Replace 20XX with 2022 (#18158)
* Replace 2020 with 2022

Replace all 2020 headers with 2022

* replace other years with 2022

add missing years
2022-10-01 08:42:14 +01:00
Hielke Morsink
162ef18a26 Add eye glyph (👁) 2022-05-02 22:06:11 +02:00
Michael Steenbeek
6d229eb9d9 Add tilde to sprite font 2022-02-06 21:08:40 +01:00
Michael Steenbeek
a0e2ab3a89 Add vertical bar and braces 2022-02-03 23:55:23 +01:00
Alib234
c7851983e4 Added missing #include for limits 2021-11-28 15:08:45 +01:00
Hielke Morsink
9dd20ec619 Improve array formatting
For most of these cases, adding a trailing comma to the array block makes clang-format put each item on a new line, and clang-format exception blocks could be reduced where clang-format does not handle them properly.
2021-10-17 18:21:45 +02:00
Hielke Morsink
4b4b3333d6 Remove unnecessary else blocks 2021-09-16 18:31:12 +02:00
Michael Steenbeek
2a9481bb99 Add Œ ligature 2021-07-20 14:28:43 +02:00
Michael Steenbeek
3bb15d9067 Support drawing em-dashes
These are used in the French translation.
2021-07-20 13:34:22 +02:00
Gymnasiast
2477933c51 Turn font sprite base into a strong enum 2021-02-28 00:23:00 +01:00
Ted John
5a90cd4163 Apply a few more code review comments 2020-11-27 18:54:58 +00:00
Ted John
b6a688e540 Refactor format tokens 2020-11-27 18:54:57 +00:00
tellovishous
96945183f5 Add stroke to lowercase 'L' to differentiate from capital 'I' (#12890)
The problem with many sans-serif fonts, such as those in RCT2, is that it can be difficult to tell between a lowercase L and an uppercase I, and can be visually ambiguous. What I've done is add a small stroke to the bottom of the lowercase L's so that it will stand out better when it's used next to capital I's.
2020-09-10 20:07:12 +02:00
Gymnasiast
d5ff5712b9 Add drawing code for the Esperanto characters 2020-09-05 22:58:00 +02:00
Michael Steenbeek
41162cc22f Fix: bad kerning on lowercase 'j' character (original bug) 2020-07-26 23:19:16 +02:00
Aaron van Geffen
7b5087f057 Update copyright year to 2020 2020-07-21 15:04:34 +02:00
Michał Janiszewski
2323cc1596 Use named casts instead of old-style casts
Change prepared with clang-tidy and google-readability-casting check
2020-04-22 17:09:29 +02:00
Michael Steenbeek
e1e8e2bec0 Add drawing code for ō (#11201) 2020-04-01 14:31:53 +02:00
Michael Steenbeek
3706581073 Add support for drawing en-dash and multiplication sign (#9570) 2019-07-14 15:58:33 +02:00
Aaron van Geffen
cfd863ef12 Prevent making unnecessary copies in certain tile loops (#9549) 2019-07-11 18:43:33 +02:00
ζeh Matt
0b41c0f9a1 Fix #8988: Improve lookups for codepoint offsets 2019-03-30 21:50:49 +01:00
Gymnasiast
ff12d5c202 Add Z with caron 2019-03-27 10:06:25 +01:00
Gymnasiast
cf65d01ac0 Add U with ring 2019-03-27 10:06:25 +01:00
Gymnasiast
ef5472c566 Add S with caron 2019-03-27 10:06:25 +01:00
Gymnasiast
fd1f763b83 Add R with caron 2019-03-27 10:06:25 +01:00
Gymnasiast
43d4a20b79 Add N with caron 2019-03-27 10:06:25 +01:00
Aaron van Geffen
2af13904c5 Update copyright notices for 2019. (#8903) 2019-03-17 07:16:15 +00:00
Hielke Morsink
354d973a48 Use std::size instead of Util::CountOf 2018-11-23 21:59:08 +01:00
Gymnasiast
a2033bc8ab Add non-breaking spaces 2018-11-09 23:41:18 +01:00
Gymnasiast
72d2ebd4d7 Add Russian rouble sign 2018-11-09 23:40:18 +01:00
Michael Steenbeek
fd12aff8f7 Add D and E with caron
This also adds the Unicode codepoints for the remaining Czech letters.
2018-09-23 22:23:37 +02:00
Gymnasiast
f07e677af1 Replace switch towers with std::map 2018-09-23 11:31:04 +02:00
Gymnasiast
7d7d0aeab5 Adopt OpenLoco's UTF-8 handling 2018-09-23 11:31:04 +02:00