Ted John
35df72e61f
Remove use of gCurrentLanguage
2018-05-11 20:39:00 +01:00
Ted John
7b28078da2
Remove use of gUseTrueTypeFont
2018-05-11 20:37:48 +01:00
Michał Janiszewski
3303246b09
Reduce header inclusions
2018-03-20 00:27:58 +01:00
Aaron van Geffen
bd928bc27e
Make font hinting optional on a per-font basis.
...
Previously, hinting could only be disabled globally.
This commit disables hinting if the hinting threshold is set to 0.
Note that this parameter is configurable through config.ini, too.
2018-02-13 10:15:27 +01:00
Aaron van Geffen
1809eec079
Improve TrueType font appearance for scrolling texts.
...
This makes the scrolling text drawing code respect banner font y-offset definitions.
Font definitions are also adjusted accordingly. Definitions set prior were ignored
by the game thus far, hence the need for adjustment.
2018-02-13 10:15:27 +01:00
Michał Janiszewski
5a8cfb16c8
Clang-format guards for static data
...
This guards most of the hardcoded data from clang-format.
[ci skip]
2018-01-11 09:19:56 +01:00
Michael Steenbeek
755add6c9a
Compile localisation folder as C++
2018-01-06 18:32:25 +01:00
Ted John
3dcbebcf68
Refactor drawing.c to C++
2018-01-05 22:57:57 +01:00
Ted John
144dbf431c
Refactor ttf.c to C++
2018-01-05 22:57:55 +01:00
Aaron van Geffen
13f99e495e
Reduce console verbosity for TTF loading.
2017-11-17 10:31:26 +01:00
Aaron van Geffen
dd4f5ff93b
Use 'STHeiti' for Chinese (Simplified) on macOS.
2017-10-30 12:06:05 +01:00
Aaron van Geffen
9cb25e6106
Use 'LiHei Pro' for Chinese (Traditional) on macOS.
2017-10-30 12:06:05 +01:00
Aaron van Geffen
b393ce3f11
Introduce 'Nanum' as a macOS alternative for Gulim when using Korean.
2017-10-30 12:06:05 +01:00
Aaron van Geffen
744341af07
Introduce 'Arial Unicode MS' as a more compatible alternative to regular Arial.
2017-10-30 12:06:05 +01:00
Aaron van Geffen
58add28604
Introduce 'Hiragino Maru Gothic' for Japanese on macOS.
2017-10-30 12:06:05 +01:00
Aaron van Geffen
8c8a2317f6
Initial prototype for font families.
2017-10-30 12:06:05 +01:00
Aaron van Geffen
9984fcac88
Set default TTF font heights to more sensible values.
2017-10-22 21:47:17 +02:00
Aaron van Geffen
551fdabc7f
Make the hinting threshold configurable per font.
...
This addresses the issue that tofu would not show up in Arial on macOS if the
threshold was set to 60. It being the fallback font, it is important that they
do, which requires lowering to at most 43.
However, it is even more important that the threshold is left at 60 for kanji
in e.g. Japanese to render properly.
Hence, for the moment, Arial is the only font now using a hinting threshold
of 40, for now.
2017-10-15 22:31:11 +02:00
Aaron van Geffen
bfc999aac9
Order language list by native name
2017-10-09 10:53:09 +02:00
Michael Steenbeek
c8d6cf12e3
Add experimental Arabic language support
2017-09-21 09:24:06 +02:00
Michał Janiszewski
00fd18809c
Move extern "C" {} blocks to headers ( #6282 )
2017-09-18 17:05:28 +02:00
Ted John
2c07a55696
Refactor TTF into new source and remove SDL2_ttf
2017-06-24 14:50:30 +01:00
Michał Janiszewski
79d76759bb
Fix #5516 : Update copyrights for 2017
...
Not all files were necessarily _changed_, but all were touched, see
https://github.com/OpenRCT2/OpenRCT2/pull/4932
2017-06-01 21:55:10 +02:00
CraigCraig
26287f5a3e
More readability, grammar, spelling fixes
2017-05-15 09:28:43 +02:00
CraigCraig
e0b875398b
Tons of spelling fixes ( #5413 )
...
[ci skip]
2017-04-30 06:39:24 +02:00
Ted John
fb2c835d52
Include new config header
2017-02-18 15:45:10 +00:00
Michael Steenbeek
260cd607c8
Add Catalan language ( #5222 )
2017-02-17 19:40:58 +01:00
Ted John
25bc798ff8
Move contents of src into project sub directory
2017-01-04 17:44:12 +00:00