From 43d4a20b797bf38373aec75e8ae7304925f897f6 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 24 Feb 2019 22:31:02 +0100 Subject: [PATCH 1/9] Add N with caron --- resources/g2/font/latin/n-caron-bold.png | Bin 0 -> 171 bytes resources/g2/font/latin/n-caron-small.png | Bin 0 -> 171 bytes resources/g2/font/latin/n-caron-tiny.png | Bin 0 -> 172 bytes resources/g2/font/latin/n-caron-uc-bold.png | Bin 0 -> 193 bytes resources/g2/font/latin/n-caron-uc-small.png | Bin 0 -> 183 bytes resources/g2/font/latin/n-caron-uc-tiny.png | Bin 0 -> 179 bytes resources/g2/sprites.json | 36 +++++++++++++++++++ src/openrct2/drawing/Font.cpp | 2 ++ src/openrct2/sprites.h | 5 ++- 9 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 resources/g2/font/latin/n-caron-bold.png create mode 100644 resources/g2/font/latin/n-caron-small.png create mode 100644 resources/g2/font/latin/n-caron-tiny.png create mode 100644 resources/g2/font/latin/n-caron-uc-bold.png create mode 100644 resources/g2/font/latin/n-caron-uc-small.png create mode 100644 resources/g2/font/latin/n-caron-uc-tiny.png diff --git a/resources/g2/font/latin/n-caron-bold.png b/resources/g2/font/latin/n-caron-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..438634bc254c5895c4f2909b5cf319c1d7152c60 GIT binary patch literal 171 zcmeAS@N?(olHy`uVBq!ia0y~yU|?rpVBlh6W?*1oU9@H%0|Nt3fKP~Ps&0A*!~g#b z9mdB0+yDNJVPIfjED7=pW^j0RBMrn!@^*J&=wOxgU|?Y2EbxddW?mdKI;Vst04`xFpa1{> literal 0 HcmV?d00001 diff --git a/resources/g2/font/latin/n-caron-small.png b/resources/g2/font/latin/n-caron-small.png new file mode 100644 index 0000000000000000000000000000000000000000..97630bad3d0d516a9ed752d86b4dad253978c801 GIT binary patch literal 171 zcmeAS@N?(olHy`uVBq!ia0y~yU|?flVBlh6W?*1=m2i9k0|Nt3fKP~Ps&0A*!~g#b z9mdB0+yDNJVPIfjED7=pW^j0RBMrn!@^*J&=wOxgU|?Y2EbxddW?8)7#J8BOM?7@862M7NCR<_yxmdJL>4nJa0`PlBg3pY5)2Fs z>?NMQuI!JQBt(Tw+YeiPXJBB^^K@|x;kcfh5R{PcV9wzK3qp?`FnIftv2CSyqs3Q- q!&@#e^ITrev{8%Y_6K7I28H*0rv6i6H!(0UFnGH9xvX9wGD|`jEB!KwN8bg=d#Wzp$P!c)hx*X literal 0 HcmV?d00001 diff --git a/resources/g2/sprites.json b/resources/g2/sprites.json index 66046226a4..775a67f7ed 100644 --- a/resources/g2/sprites.json +++ b/resources/g2/sprites.json @@ -796,6 +796,18 @@ "palette": "keep", "forceBmp": true }, + { + "path": "font/latin/n-caron-uc-small.png", + "y_offset": 0, + "palette": "keep", + "forceBmp": true + }, + { + "path": "font/latin/n-caron-small.png", + "y_offset": 0, + "palette": "keep", + "forceBmp": true + }, { "path": "font/rouble-small.png", "y_offset": 0, @@ -1205,6 +1217,18 @@ "palette": "keep", "forceBmp": true }, + { + "path": "font/latin/n-caron-uc-bold.png", + "y_offset": -1, + "palette": "keep", + "forceBmp": true + }, + { + "path": "font/latin/n-caron-bold.png", + "y_offset": 0, + "palette": "keep", + "forceBmp": true + }, { "path": "font/rouble-bold.png", "y_offset": 0, @@ -1622,6 +1646,18 @@ "palette": "keep", "forceBmp": true }, + { + "path": "font/latin/n-caron-uc-tiny.png", + "y_offset": -1, + "palette": "keep", + "forceBmp": true + }, + { + "path": "font/latin/n-caron-tiny.png", + "y_offset": -1, + "palette": "keep", + "forceBmp": true + }, { "path": "font/rouble-tiny.png", "y_offset": 0, diff --git a/src/openrct2/drawing/Font.cpp b/src/openrct2/drawing/Font.cpp index ed0f492d1b..ffebab11dc 100644 --- a/src/openrct2/drawing/Font.cpp +++ b/src/openrct2/drawing/Font.cpp @@ -57,6 +57,8 @@ static const std::map codepointOffsetMap = { { UnicodeChar::l_stroke, CSChar::l_stroke - CS_SPRITE_FONT_OFFSET }, { UnicodeChar::n_acute_uc, CSChar::n_acute_uc - CS_SPRITE_FONT_OFFSET }, { UnicodeChar::n_acute, CSChar::n_acute - CS_SPRITE_FONT_OFFSET }, + { UnicodeChar::n_caron_uc, SPR_G2_N_CARON_UPPER - SPR_CHAR_START }, + { UnicodeChar::n_caron, SPR_G2_N_CARON_LOWER - SPR_CHAR_START }, { UnicodeChar::o_double_acute_uc, SPR_G2_O_DOUBLE_ACUTE_UPPER - SPR_CHAR_START }, { UnicodeChar::o_double_acute, SPR_G2_O_DOUBLE_ACUTE_LOWER - SPR_CHAR_START }, { UnicodeChar::s_acute_uc, CSChar::s_acute_uc - CS_SPRITE_FONT_OFFSET }, diff --git a/src/openrct2/sprites.h b/src/openrct2/sprites.h index 392638a413..cad340541b 100644 --- a/src/openrct2/sprites.h +++ b/src/openrct2/sprites.h @@ -917,8 +917,11 @@ enum SPR_G2_D_CARON_LOWER = SPR_G2_CHAR_BEGIN + 71, SPR_G2_E_CARON_UPPER = SPR_G2_CHAR_BEGIN + 72, SPR_G2_E_CARON_LOWER = SPR_G2_CHAR_BEGIN + 73, + + SPR_G2_N_CARON_UPPER = SPR_G2_CHAR_BEGIN + 74, + SPR_G2_N_CARON_LOWER = SPR_G2_CHAR_BEGIN + 75, - SPR_G2_ROUBLE_SIGN = SPR_G2_CHAR_BEGIN + 74, + SPR_G2_ROUBLE_SIGN = SPR_G2_CHAR_BEGIN + 76, SPR_G2_CHAR_END = SPR_G2_ROUBLE_SIGN, SPR_G2_GLYPH_COUNT = (SPR_G2_CHAR_END - SPR_G2_CHAR_BEGIN) + 1, From fd1f763b83f91a172da60cb172231d71b642335c Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 24 Mar 2019 21:57:56 +0100 Subject: [PATCH 2/9] Add R with caron --- resources/g2/font/latin/r-caron-bold.png | Bin 0 -> 172 bytes resources/g2/font/latin/r-caron-small.png | Bin 0 -> 171 bytes resources/g2/font/latin/r-caron-tiny.png | Bin 0 -> 171 bytes resources/g2/font/latin/r-caron-uc-bold.png | Bin 0 -> 184 bytes resources/g2/font/latin/r-caron-uc-small.png | Bin 0 -> 182 bytes resources/g2/font/latin/r-caron-uc-tiny.png | Bin 0 -> 172 bytes resources/g2/sprites.json | 36 +++++++++++++++++++ src/openrct2/drawing/Font.cpp | 2 ++ src/openrct2/sprites.h | 5 +-- 9 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 resources/g2/font/latin/r-caron-bold.png create mode 100644 resources/g2/font/latin/r-caron-small.png create mode 100644 resources/g2/font/latin/r-caron-tiny.png create mode 100644 resources/g2/font/latin/r-caron-uc-bold.png create mode 100644 resources/g2/font/latin/r-caron-uc-small.png create mode 100644 resources/g2/font/latin/r-caron-uc-tiny.png diff --git a/resources/g2/font/latin/r-caron-bold.png b/resources/g2/font/latin/r-caron-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..65dbf1c4f8f16cb30ace0a37b79d99609098dc2a GIT binary patch literal 172 zcmeAS@N?(olHy`uVBq!ia0y~yU|?flVBlh6W?*1=m2i9k0|Nt3fKP~Ps&0A*!~g#b z9mdB0+yDNJVPIfjED7=pW^j0RBMrn!@^*J&=wOxgU|?Y2EbxddW?8)K++{ae!&b5&u*lFI7!~_E({&4vK|Z!44efXk;M!Q+`=Ht$S`Y;1Oo#D zdx@v7EBj++2@xd@8-M0W3=9kso-U3d9M_W{Bqapc9$-*>ZftPI(TRFVdQ&MBb@0AUj codepointOffsetMap = { { UnicodeChar::n_caron, SPR_G2_N_CARON_LOWER - SPR_CHAR_START }, { UnicodeChar::o_double_acute_uc, SPR_G2_O_DOUBLE_ACUTE_UPPER - SPR_CHAR_START }, { UnicodeChar::o_double_acute, SPR_G2_O_DOUBLE_ACUTE_LOWER - SPR_CHAR_START }, + { UnicodeChar::r_caron_uc, SPR_G2_R_CARON_UPPER - SPR_CHAR_START }, + { UnicodeChar::r_caron, SPR_G2_R_CARON_LOWER - SPR_CHAR_START }, { UnicodeChar::s_acute_uc, CSChar::s_acute_uc - CS_SPRITE_FONT_OFFSET }, { UnicodeChar::s_acute, CSChar::s_acute - CS_SPRITE_FONT_OFFSET }, { UnicodeChar::s_cedilla_uc, SPR_G2_S_CEDILLA_UPPER - SPR_CHAR_START }, diff --git a/src/openrct2/sprites.h b/src/openrct2/sprites.h index cad340541b..98af5976f7 100644 --- a/src/openrct2/sprites.h +++ b/src/openrct2/sprites.h @@ -917,11 +917,12 @@ enum SPR_G2_D_CARON_LOWER = SPR_G2_CHAR_BEGIN + 71, SPR_G2_E_CARON_UPPER = SPR_G2_CHAR_BEGIN + 72, SPR_G2_E_CARON_LOWER = SPR_G2_CHAR_BEGIN + 73, - SPR_G2_N_CARON_UPPER = SPR_G2_CHAR_BEGIN + 74, SPR_G2_N_CARON_LOWER = SPR_G2_CHAR_BEGIN + 75, + SPR_G2_R_CARON_UPPER = SPR_G2_CHAR_BEGIN + 76, + SPR_G2_R_CARON_LOWER = SPR_G2_CHAR_BEGIN + 77, - SPR_G2_ROUBLE_SIGN = SPR_G2_CHAR_BEGIN + 76, + SPR_G2_ROUBLE_SIGN = SPR_G2_CHAR_BEGIN + 78, SPR_G2_CHAR_END = SPR_G2_ROUBLE_SIGN, SPR_G2_GLYPH_COUNT = (SPR_G2_CHAR_END - SPR_G2_CHAR_BEGIN) + 1, From ef5472c5665857dca69bb6632030d5f827a44756 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 25 Mar 2019 16:15:33 +0100 Subject: [PATCH 3/9] Add S with caron --- resources/g2/font/latin/s-caron-bold.png | Bin 0 -> 183 bytes resources/g2/font/latin/s-caron-small.png | Bin 0 -> 178 bytes resources/g2/font/latin/s-caron-tiny.png | Bin 0 -> 179 bytes resources/g2/font/latin/s-caron-uc-bold.png | Bin 0 -> 187 bytes resources/g2/font/latin/s-caron-uc-small.png | Bin 0 -> 182 bytes resources/g2/font/latin/s-caron-uc-tiny.png | Bin 0 -> 173 bytes resources/g2/sprites.json | 36 +++++++++++++++++++ src/openrct2/drawing/Font.cpp | 2 ++ src/openrct2/sprites.h | 6 ++-- 9 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 resources/g2/font/latin/s-caron-bold.png create mode 100644 resources/g2/font/latin/s-caron-small.png create mode 100644 resources/g2/font/latin/s-caron-tiny.png create mode 100644 resources/g2/font/latin/s-caron-uc-bold.png create mode 100644 resources/g2/font/latin/s-caron-uc-small.png create mode 100644 resources/g2/font/latin/s-caron-uc-tiny.png diff --git a/resources/g2/font/latin/s-caron-bold.png b/resources/g2/font/latin/s-caron-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..14600a8dce2e550d369071446db76f492ae0c83a GIT binary patch literal 183 zcmeAS@N?(olHy`uVBq!ia0y~yU|?rpVBlh6W?*1oU9@H%0|Nt3fKP~Ps&0A*!~g#b z9mdB0+yDNJVPIfjED7=pW^j0RBMrn!@^*J&=wOxgU|?Y2EbxddW?bP0l+XkKwbL=x literal 0 HcmV?d00001 diff --git a/resources/g2/font/latin/s-caron-small.png b/resources/g2/font/latin/s-caron-small.png new file mode 100644 index 0000000000000000000000000000000000000000..073d4d9c0f32c37cc0565230cf3039b6a3b48c3d GIT binary patch literal 178 zcmeAS@N?(olHy`uVBq!ia0y~yU|?flVBlh6W?*1=m2i9k0|Nt3fKP~Ps&0A*!~g#b z9mdB0+yDNJVPIfjED7=pW^j0RBMrn!@^*J&=wOxgU|?Y2EbxddW?UvI!Shj2oK% b@Gyi-VKZCTHv2XM0|SGntDnm{r-UW|mdKI;Vst045bLSO5S3 literal 0 HcmV?d00001 diff --git a/resources/g2/font/latin/s-caron-uc-bold.png b/resources/g2/font/latin/s-caron-uc-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..e46b2b1bb26fb740189a89ee2dc74515a742dcba GIT binary patch literal 187 zcmeAS@N?(olHy`uVBq!ia0y~yVBlb2VBltAW?*2j|EjW$fq{W1z$e5tRX4qZ;s1Yz z4rAm0?SKEqFfcGMmIV0)GdMiEkp|)|9BHLm~w literal 0 HcmV?d00001 diff --git a/resources/g2/font/latin/s-caron-uc-small.png b/resources/g2/font/latin/s-caron-uc-small.png new file mode 100644 index 0000000000000000000000000000000000000000..aef1fb5e4d25beb4efd0084a2fd883dcb93d62d2 GIT binary patch literal 182 zcmeAS@N?(olHy`uVBq!ia0y~yU|?flVBltAW?*1Yv=L!tU|`@0@Ck8E)lKhU`2U}w z!`S$L``^DY3=9m6B|(0{3=Yq3q=7g|-tI089jvk*3=9mM1s;*b3=G`DAk4@xYmNj1 z0|R@Br>`sfV`fQyPKGzyv9=5h49cD^jv*Y^lOH4{1lS&6P?DBN6E#>Nn{Xi~VMaJZ f67$iYk_@G@cl*||y7#KWV{an^LB{Ts56uc|H literal 0 HcmV?d00001 diff --git a/resources/g2/font/latin/s-caron-uc-tiny.png b/resources/g2/font/latin/s-caron-uc-tiny.png new file mode 100644 index 0000000000000000000000000000000000000000..51442f2b5ed87e1118cf130eef5cf147f6ddccaf GIT binary patch literal 173 zcmeAS@N?(olHy`uVBq!ia0y~yU|?lnVBlb4W?*3OnSXZ$0|Nt3fKP~Ps&0A*!~g#b z9mdB0+yDNJVPIfjED7=pW^j0RBMrn!@^*J&=wOxgU|?Y2EbxddW?fkDdC#W95Adh&yWgn;CP8C4C5Vl%GTFets1WUzV9 W`r$dl# codepointOffsetMap = { { UnicodeChar::s_acute, CSChar::s_acute - CS_SPRITE_FONT_OFFSET }, { UnicodeChar::s_cedilla_uc, SPR_G2_S_CEDILLA_UPPER - SPR_CHAR_START }, { UnicodeChar::s_cedilla, SPR_G2_S_CEDILLA_LOWER - SPR_CHAR_START }, + { UnicodeChar::s_caron_uc, SPR_G2_S_CARON_UPPER - SPR_CHAR_START }, + { UnicodeChar::s_caron, SPR_G2_S_CARON_LOWER - SPR_CHAR_START }, { UnicodeChar::u_double_acute_uc, SPR_G2_U_DOUBLE_ACUTE_UPPER - SPR_CHAR_START }, { UnicodeChar::u_double_acute, SPR_G2_U_DOUBLE_ACUTE_LOWER - SPR_CHAR_START }, { UnicodeChar::z_acute_uc, CSChar::z_acute_uc - CS_SPRITE_FONT_OFFSET }, diff --git a/src/openrct2/sprites.h b/src/openrct2/sprites.h index 98af5976f7..0fbf162cdf 100644 --- a/src/openrct2/sprites.h +++ b/src/openrct2/sprites.h @@ -921,8 +921,10 @@ enum SPR_G2_N_CARON_LOWER = SPR_G2_CHAR_BEGIN + 75, SPR_G2_R_CARON_UPPER = SPR_G2_CHAR_BEGIN + 76, SPR_G2_R_CARON_LOWER = SPR_G2_CHAR_BEGIN + 77, - - SPR_G2_ROUBLE_SIGN = SPR_G2_CHAR_BEGIN + 78, + SPR_G2_S_CARON_UPPER = SPR_G2_CHAR_BEGIN + 78, + SPR_G2_S_CARON_LOWER = SPR_G2_CHAR_BEGIN + 79, + + SPR_G2_ROUBLE_SIGN = SPR_G2_CHAR_BEGIN + 80, SPR_G2_CHAR_END = SPR_G2_ROUBLE_SIGN, SPR_G2_GLYPH_COUNT = (SPR_G2_CHAR_END - SPR_G2_CHAR_BEGIN) + 1, From 92d348fe43ef4eae1e2e27d3c99118c8b1271273 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 25 Mar 2019 16:51:47 +0100 Subject: [PATCH 4/9] Add T with caron --- resources/g2/font/latin/t-caron-bold.png | Bin 0 -> 186 bytes resources/g2/font/latin/t-caron-small.png | Bin 0 -> 180 bytes resources/g2/font/latin/t-caron-tiny.png | Bin 0 -> 176 bytes resources/g2/font/latin/t-caron-uc-bold.png | Bin 0 -> 177 bytes resources/g2/font/latin/t-caron-uc-small.png | Bin 0 -> 177 bytes resources/g2/font/latin/t-caron-uc-tiny.png | Bin 0 -> 170 bytes 6 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 resources/g2/font/latin/t-caron-bold.png create mode 100644 resources/g2/font/latin/t-caron-small.png create mode 100644 resources/g2/font/latin/t-caron-tiny.png create mode 100644 resources/g2/font/latin/t-caron-uc-bold.png create mode 100644 resources/g2/font/latin/t-caron-uc-small.png create mode 100644 resources/g2/font/latin/t-caron-uc-tiny.png diff --git a/resources/g2/font/latin/t-caron-bold.png b/resources/g2/font/latin/t-caron-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..ec6823604cf867c8dcc00fef7a1eb54618da7d3f GIT binary patch literal 186 zcmeAS@N?(olHy`uVBq!ia0y~yU|?rpVBlh6W?*1oU9@H%0|Nt3fKP~Ps&0A*!~g#b z9mdB0+yDNJVPIfjED7=pW^j0RBMrn!@^*J&=wOxgU|?Y2EbxddW?2<5Wnf@X_jGX#;kcfh5OH9E=wSohw!~L5ZJDe*m-!8RvJ+-R i9as=`;6ObCL(4}_wFA=*KVx8EVDNPHb6Mw<&;$SuA~Ku+ literal 0 HcmV?d00001 diff --git a/resources/g2/font/latin/t-caron-small.png b/resources/g2/font/latin/t-caron-small.png new file mode 100644 index 0000000000000000000000000000000000000000..bbfd511a1292d2c2f4d77f333609d666fe3f9218 GIT binary patch literal 180 zcmeAS@N?(olHy`uVBq!ia0y~yU|?flVBln8W?*2*`LdOdfq{W1z$e5tRX4qZ;s1Yz z4rAm0?SKEqFfcGMmIV0)GdMiEkp|)4nJa0`PlBg3pY5)2Fs z>?NMQuI!JQCHaLF(lgri7#J87JzX3_IIbrLWF*W8Jz%i5A@Lkzn*?Yc!f`!0ASq!+WkaGB^I;jbHc1|yS3Ep6JPf+! X%vJxBMH3hp7#KWV{an^LB{Ts5FlsAk literal 0 HcmV?d00001 diff --git a/resources/g2/font/latin/t-caron-uc-bold.png b/resources/g2/font/latin/t-caron-uc-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..8ffebc1330ede97bb07a4eeeda4fea1a18126995 GIT binary patch literal 177 zcmeAS@N?(olHy`uVBq!ia0y~yVBlb2VBltAW?*2j|EjW$fq{W1z$e5tRX4qZ;s1Yz z4rAm0?SKEqFfcGMmIV0)GdMiEkp|) Date: Mon, 25 Mar 2019 16:51:27 +0100 Subject: [PATCH 5/9] Add U with ring --- resources/g2/font/latin/u-ring-bold.png | Bin 0 -> 180 bytes resources/g2/font/latin/u-ring-small.png | Bin 0 -> 174 bytes resources/g2/font/latin/u-ring-tiny.png | Bin 0 -> 172 bytes resources/g2/font/latin/u-ring-uc-bold.png | Bin 0 -> 194 bytes resources/g2/font/latin/u-ring-uc-small.png | Bin 0 -> 184 bytes resources/g2/font/latin/u-ring-uc-tiny.png | Bin 0 -> 171 bytes resources/g2/sprites.json | 72 ++++++++++++++++++++ src/openrct2/drawing/Font.cpp | 4 ++ src/openrct2/sprites.h | 6 +- 9 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 resources/g2/font/latin/u-ring-bold.png create mode 100644 resources/g2/font/latin/u-ring-small.png create mode 100644 resources/g2/font/latin/u-ring-tiny.png create mode 100644 resources/g2/font/latin/u-ring-uc-bold.png create mode 100644 resources/g2/font/latin/u-ring-uc-small.png create mode 100644 resources/g2/font/latin/u-ring-uc-tiny.png diff --git a/resources/g2/font/latin/u-ring-bold.png b/resources/g2/font/latin/u-ring-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..d818014dcfd5bd6e7f3862b1f55b7dbef1f6610e GIT binary patch literal 180 zcmeAS@N?(olHy`uVBq!ia0y~yU|?rpVBltAW?*1A_pjcXfq{W1z$e5tRX4qZ;s1Yz z4rAm0?SKEqFfcGMmIV0)GdMiEkp|)om0}FOGBu4Qt`SvCT=q5a{ bXJDub;P6-=x8W)S0|SGntDnm{r-UW|OpY(t literal 0 HcmV?d00001 diff --git a/resources/g2/font/latin/u-ring-small.png b/resources/g2/font/latin/u-ring-small.png new file mode 100644 index 0000000000000000000000000000000000000000..3f3afb46589ec9199c654c5a7e3e08d47c34104b GIT binary patch literal 174 zcmeAS@N?(olHy`uVBq!ia0y~yU|?flVBlh6W?*1=m2i9k0|Nt3fKP~Ps&0A*!~g#b z9mdB0+yDNJVPIfjED7=pW^j0RBMrn!@^*J&=wOxgU|?Y2EbxddW?IU6K!DmDalY2 X#(p)#XX8Hx1_lOCS3j3^P6-7ShW}XR VJU$w9k%57M!PC{xWt~$(69CoNEztk~ literal 0 HcmV?d00001 diff --git a/resources/g2/font/latin/u-ring-uc-bold.png b/resources/g2/font/latin/u-ring-uc-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..2a921028cde50231a33af5c5f8abf84509394366 GIT binary patch literal 194 zcmeAS@N?(olHy`uVBq!ia0y~yVBln6VBltAW?*2rVD8_+z`(#0;1lASs+-=y@c%zU zhq3Yh_P>8)7#J8BOM?7@862M7NCR<_yxmdJL>4nJa0`PlBg3pY5)2Fs z>?NMQuI!JQCHYl!JMTp=XJBB^_jGX#;kcfhkdcs(;FXYYVb0M52DV=r4u4thu!ig4 qlW)OeRduY43&Ibkt1_n=8KbLh*2~7Y|gE#2_ literal 0 HcmV?d00001 diff --git a/resources/g2/font/latin/u-ring-uc-small.png b/resources/g2/font/latin/u-ring-uc-small.png new file mode 100644 index 0000000000000000000000000000000000000000..581629045c9a925153750c62e1404949154f7973 GIT binary patch literal 184 zcmeAS@N?(olHy`uVBq!ia0y~yVBlb2VBltAW?*2j|EjW$fq{W1z$e5tRX4qZ;s1Yz z4rAm0?SKEqFfcGMmIV0)GdMiEkp|) codepointOffsetMap = { { UnicodeChar::s_cedilla, SPR_G2_S_CEDILLA_LOWER - SPR_CHAR_START }, { UnicodeChar::s_caron_uc, SPR_G2_S_CARON_UPPER - SPR_CHAR_START }, { UnicodeChar::s_caron, SPR_G2_S_CARON_LOWER - SPR_CHAR_START }, + { UnicodeChar::t_caron_uc, SPR_G2_T_CARON_UPPER - SPR_CHAR_START }, + { UnicodeChar::t_caron, SPR_G2_T_CARON_LOWER - SPR_CHAR_START }, + { UnicodeChar::u_ring_uc, SPR_G2_U_RING_UPPER - SPR_CHAR_START }, + { UnicodeChar::u_ring, SPR_G2_U_RING_LOWER - SPR_CHAR_START }, { UnicodeChar::u_double_acute_uc, SPR_G2_U_DOUBLE_ACUTE_UPPER - SPR_CHAR_START }, { UnicodeChar::u_double_acute, SPR_G2_U_DOUBLE_ACUTE_LOWER - SPR_CHAR_START }, { UnicodeChar::z_acute_uc, CSChar::z_acute_uc - CS_SPRITE_FONT_OFFSET }, diff --git a/src/openrct2/sprites.h b/src/openrct2/sprites.h index 0fbf162cdf..9600cc522c 100644 --- a/src/openrct2/sprites.h +++ b/src/openrct2/sprites.h @@ -923,8 +923,12 @@ enum SPR_G2_R_CARON_LOWER = SPR_G2_CHAR_BEGIN + 77, SPR_G2_S_CARON_UPPER = SPR_G2_CHAR_BEGIN + 78, SPR_G2_S_CARON_LOWER = SPR_G2_CHAR_BEGIN + 79, + SPR_G2_T_CARON_UPPER = SPR_G2_CHAR_BEGIN + 80, + SPR_G2_T_CARON_LOWER = SPR_G2_CHAR_BEGIN + 81, + SPR_G2_U_RING_UPPER = SPR_G2_CHAR_BEGIN + 82, + SPR_G2_U_RING_LOWER = SPR_G2_CHAR_BEGIN + 83, - SPR_G2_ROUBLE_SIGN = SPR_G2_CHAR_BEGIN + 80, + SPR_G2_ROUBLE_SIGN = SPR_G2_CHAR_BEGIN + 84, SPR_G2_CHAR_END = SPR_G2_ROUBLE_SIGN, SPR_G2_GLYPH_COUNT = (SPR_G2_CHAR_END - SPR_G2_CHAR_BEGIN) + 1, From ff12d5c2028b2375ca1e70e48adc16f2e9142e54 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 25 Mar 2019 17:02:35 +0100 Subject: [PATCH 6/9] Add Z with caron --- resources/g2/font/latin/z-caron-bold.png | Bin 0 -> 180 bytes resources/g2/font/latin/z-caron-small.png | Bin 0 -> 182 bytes resources/g2/font/latin/z-caron-tiny.png | Bin 0 -> 171 bytes resources/g2/font/latin/z-caron-uc-bold.png | Bin 0 -> 190 bytes resources/g2/font/latin/z-caron-uc-small.png | Bin 0 -> 185 bytes resources/g2/font/latin/z-caron-uc-tiny.png | Bin 0 -> 176 bytes resources/g2/sprites.json | 36 +++++++++++++++++++ src/openrct2/drawing/Font.cpp | 2 ++ src/openrct2/sprites.h | 4 ++- 9 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 resources/g2/font/latin/z-caron-bold.png create mode 100644 resources/g2/font/latin/z-caron-small.png create mode 100644 resources/g2/font/latin/z-caron-tiny.png create mode 100644 resources/g2/font/latin/z-caron-uc-bold.png create mode 100644 resources/g2/font/latin/z-caron-uc-small.png create mode 100644 resources/g2/font/latin/z-caron-uc-tiny.png diff --git a/resources/g2/font/latin/z-caron-bold.png b/resources/g2/font/latin/z-caron-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..f4a69f936d7f69d88b57e1c98aa7d88eb6bd2294 GIT binary patch literal 180 zcmeAS@N?(olHy`uVBq!ia0y~yU|?rpVBlh6W?*1oU9@H%0|Nt3fKP~Ps&0A*!~g#b z9mdB0+yDNJVPIfjED7=pW^j0RBMrn!@^*J&=wOxgU|?Y2EbxddW?s02U!ULx(OGe4j7oW9n@=U+}z+OdWKEu cH$Ow#G4>p1B0ilpUXO@geCyX6fG_Q literal 0 HcmV?d00001 diff --git a/resources/g2/font/latin/z-caron-uc-bold.png b/resources/g2/font/latin/z-caron-uc-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..9503ac8284e8fde101cd577124e73162390a3c9b GIT binary patch literal 190 zcmeAS@N?(olHy`uVBq!ia0y~yVBln6VBltAW?*2rVD8_+z`(#0;1lASs+-=y@c%zU zhq3Yh_P>8)7#J8BOM?7@862M7NCR<_yxmdJL>4nJa0`PlBg3pY5)2Fs z>?NMQuI!JQCHc+N1^*w)Vqjp<_H=O!;kcgsAnM?O1ybh@EZExBn3(l~k?r?Nc8M7c mHRmK2REW9o==__{$Z#uyTOo#Dm6w5mfx*+&&t;ucLK6UPz%-8l literal 0 HcmV?d00001 diff --git a/resources/g2/font/latin/z-caron-uc-small.png b/resources/g2/font/latin/z-caron-uc-small.png new file mode 100644 index 0000000000000000000000000000000000000000..7221299be9046fc33a4d36dd75b8cdd1ca83dcd6 GIT binary patch literal 185 zcmeAS@N?(olHy`uVBq!ia0y~yVBlb2VBltAW?*2j|EjW$fq{W1z$e5tRX4qZ;s1Yz z4rAm0?SKEqFfcGMmIV0)GdMiEkp|)OBk$3=E#GelF{r5}E)3fH8ak literal 0 HcmV?d00001 diff --git a/resources/g2/font/latin/z-caron-uc-tiny.png b/resources/g2/font/latin/z-caron-uc-tiny.png new file mode 100644 index 0000000000000000000000000000000000000000..5bff847a48c20cc805e6c02baa8abba4648329bc GIT binary patch literal 176 zcmeAS@N?(olHy`uVBq!ia0y~yU|?lnVBlb4W?*3OnSXZ$0|Nt3fKP~Ps&0A*!~g#b z9mdB0+yDNJVPIfjED7=pW^j0RBMrn!@^*J&=wOxgU|?Y2EbxddW?O#W95Adh&yWgn;CP8C4AjKQT00F(1}3xIK@N Y!8o7g(%$cpAgdTWUHx3vIVCg!0Ll3 codepointOffsetMap = { { UnicodeChar::z_acute, CSChar::z_acute - CS_SPRITE_FONT_OFFSET }, { UnicodeChar::z_dot_uc, CSChar::z_dot_uc - CS_SPRITE_FONT_OFFSET }, { UnicodeChar::z_dot, CSChar::z_dot - CS_SPRITE_FONT_OFFSET }, + { UnicodeChar::z_caron_uc, SPR_G2_Z_CARON_UPPER - SPR_CHAR_START }, + { UnicodeChar::z_caron, SPR_G2_Z_CARON_LOWER - SPR_CHAR_START }, { UnicodeChar::f_with_hook_uc, 'F' - CS_SPRITE_FONT_OFFSET }, { UnicodeChar::s_comma_uc, SPR_G2_S_CEDILLA_UPPER - SPR_CHAR_START }, // No visual difference { UnicodeChar::s_comma, SPR_G2_S_CEDILLA_LOWER - SPR_CHAR_START }, // Ditto diff --git a/src/openrct2/sprites.h b/src/openrct2/sprites.h index 9600cc522c..2cfec914c0 100644 --- a/src/openrct2/sprites.h +++ b/src/openrct2/sprites.h @@ -927,8 +927,10 @@ enum SPR_G2_T_CARON_LOWER = SPR_G2_CHAR_BEGIN + 81, SPR_G2_U_RING_UPPER = SPR_G2_CHAR_BEGIN + 82, SPR_G2_U_RING_LOWER = SPR_G2_CHAR_BEGIN + 83, + SPR_G2_Z_CARON_UPPER = SPR_G2_CHAR_BEGIN + 84, + SPR_G2_Z_CARON_LOWER = SPR_G2_CHAR_BEGIN + 85, - SPR_G2_ROUBLE_SIGN = SPR_G2_CHAR_BEGIN + 84, + SPR_G2_ROUBLE_SIGN = SPR_G2_CHAR_BEGIN + 86, SPR_G2_CHAR_END = SPR_G2_ROUBLE_SIGN, SPR_G2_GLYPH_COUNT = (SPR_G2_CHAR_END - SPR_G2_CHAR_BEGIN) + 1, From bbfa2570d5c3ae7b82b3ba20a653bd55cf457423 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 25 Mar 2019 17:03:12 +0100 Subject: [PATCH 7/9] Switch Czech to sprite font --- src/openrct2/localisation/Language.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/localisation/Language.cpp b/src/openrct2/localisation/Language.cpp index bdf2eb3604..cca9d7428b 100644 --- a/src/openrct2/localisation/Language.cpp +++ b/src/openrct2/localisation/Language.cpp @@ -28,7 +28,7 @@ const language_descriptor LanguagesDescriptors[LANGUAGE_COUNT] = { "ca-ES", "Catalan", u8"Català", FAMILY_OPENRCT2_SPRITE, false }, // LANGUAGE_CATALAN { "zh-CN", "Chinese (Simplified)", "Chinese (Simplified)", FAMILY(&TTFFamilyChineseSimplified), false }, // LANGUAGE_CHINESE_SIMPLIFIED { "zh-TW", "Chinese (Traditional)", "Chinese (Traditional)", FAMILY(&TTFFamilyChineseTraditional), false }, // LANGUAGE_CHINESE_TRADITIONAL - { "cs-CZ", "Czech", "Czech", FAMILY(&TTFFamilySansSerif), false }, // LANGUAGE_CZECH + { "cs-CZ", "Czech", u8"Čeština", FAMILY_OPENRCT2_SPRITE, false }, // LANGUAGE_CZECH { "da-DK", "Danish", "Dansk", FAMILY_OPENRCT2_SPRITE, false }, // LANGUAGE_DANISH { "de-DE", "German", "Deutsch", FAMILY_OPENRCT2_SPRITE, false }, // LANGUAGE_GERMAN { "en-GB", "English (UK)", "English (UK)", FAMILY_OPENRCT2_SPRITE, false }, // LANGUAGE_ENGLISH_UK From 7f045918e18474974b7e28ee3e6f6203c174756c Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 25 Mar 2019 17:24:27 +0100 Subject: [PATCH 8/9] Fix formatting --- src/openrct2/sprites.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/sprites.h b/src/openrct2/sprites.h index 2cfec914c0..50b8d1ec3b 100644 --- a/src/openrct2/sprites.h +++ b/src/openrct2/sprites.h @@ -929,7 +929,7 @@ enum SPR_G2_U_RING_LOWER = SPR_G2_CHAR_BEGIN + 83, SPR_G2_Z_CARON_UPPER = SPR_G2_CHAR_BEGIN + 84, SPR_G2_Z_CARON_LOWER = SPR_G2_CHAR_BEGIN + 85, - + SPR_G2_ROUBLE_SIGN = SPR_G2_CHAR_BEGIN + 86, SPR_G2_CHAR_END = SPR_G2_ROUBLE_SIGN, SPR_G2_GLYPH_COUNT = (SPR_G2_CHAR_END - SPR_G2_CHAR_BEGIN) + 1, From ee6cee99ced85e3ea8f7a089411e5ce917a713a0 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Wed, 27 Mar 2019 10:07:30 +0100 Subject: [PATCH 9/9] Update changelog --- distribution/changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index e692bef16e..5b18c26b12 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -2,6 +2,7 @@ ------------------------------------------------------------------------ - Feature: [#7296] Allow assigning a keyboard shortcut for the scenery picker. - Feature: [#8919] Allow setting ride price from console. +- Feature: [#8963] Add missing Czech letters to sprite font, use sprite font for Czech. - Change: [#8688] Move common actions from debug menu into cheats menu. - Fix: [#5579] Network desync immediately after connecting. - Fix: [#6006] Objects higher than 6 metres are considered trees (original bug).