From ad3528a7f18a9fc20641a695f8f73599ee0144eb Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 23 Jul 2018 23:42:07 +0200 Subject: [PATCH 1/6] Add sprite font glyph for the guilder sign --- data/language/en-GB.txt | 2 +- resources/g2/font/guilder-bold.png | Bin 0 -> 237 bytes resources/g2/font/guilder-small.png | Bin 0 -> 181 bytes resources/g2/font/guilder-tiny.png | Bin 0 -> 176 bytes resources/g2/sprites.json | 18 ++++++++++++++++++ src/openrct2/drawing/Font.cpp | 9 +++++++++ src/openrct2/localisation/Currency.cpp | 2 +- src/openrct2/localisation/FormatCodes.h | 8 ++++++++ src/openrct2/sprites.h | 4 +++- 9 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 resources/g2/font/guilder-bold.png create mode 100644 resources/g2/font/guilder-small.png create mode 100644 resources/g2/font/guilder-tiny.png diff --git a/data/language/en-GB.txt b/data/language/en-GB.txt index 340e36422b..cbdc1c56c0 100644 --- a/data/language/en-GB.txt +++ b/data/language/en-GB.txt @@ -2345,7 +2345,7 @@ STR_2337 :Deutschmark (DM) STR_2338 :Yen ({YEN}) STR_2339 :Peseta (Pts) STR_2340 :Lira (L) -STR_2341 :Guilders (fl.) +STR_2341 :Guilders (ƒ) STR_2342 :Krona (kr) STR_2343 :Euros ({EURO}) STR_2344 :Imperial diff --git a/resources/g2/font/guilder-bold.png b/resources/g2/font/guilder-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..ee37c74ec15de06bdeee6e0f66dc71026a11e562 GIT binary patch literal 237 zcmeAS@N?(olHy`uVBq!ia0y~yU;weXnV1kDzk}ibe})cY z}&d&EB6J#?(B1)X|b8}PkN*F-ExhOTUBsE2$JhLQ2!QIn0AVn{g zoq>VD(9^{+gyVX0!h@&-2NpyfIAHLXf%$R?8{4@61=;fl4u~+PTsJVtU|PCNE+Jt< bdIAH(#+U5-mE027fK2st^>bP0l+XkKd3-{? literal 0 HcmV?d00001 diff --git a/resources/g2/font/guilder-small.png b/resources/g2/font/guilder-small.png new file mode 100644 index 0000000000000000000000000000000000000000..92948070418ddd467c880689107ab0953499ae6a GIT binary patch literal 181 zcmeAS@N?(olHy`uVBq!ia0y~yU|?rpVBlh6W?*1oU9@H%0|Nt3fKQ0)|Ns9x82O>_%)r1c48n{Iv*t*E z%q{Wsb!C6VE-os_zORk;4amHa31{XwG8nU{N~D%yU^% dB1eKDWf$9$<%>ma85kHCJYD@<);T3K0RTxKFDC#1 literal 0 HcmV?d00001 diff --git a/resources/g2/font/guilder-tiny.png b/resources/g2/font/guilder-tiny.png new file mode 100644 index 0000000000000000000000000000000000000000..c7ed827b104066fef5fc7c2e31b894c221a5bb54 GIT binary patch literal 176 zcmeAS@N?(olHy`uVBq!ia0y~yU|?lnU|?rrW?*30dosV4fq{W1z$e7@|Ns9T4FCT# zbQl}|Z;9e_V_;xlED7=pW^j0RBMrn!@^*J&=wOxgU|?Y2EbxddW?*?Yc!f`!0At~X3&4C5S4j6o8XtrWLT*AgC&BmZu X!t7}E)Qz8kfq}u()z4*}Q$iB}f|M*_ literal 0 HcmV?d00001 diff --git a/resources/g2/sprites.json b/resources/g2/sprites.json index 601e0201f7..3d3716fb20 100644 --- a/resources/g2/sprites.json +++ b/resources/g2/sprites.json @@ -698,6 +698,12 @@ "palette": "keep", "forceBmp": true }, + { + "path": "font/guilder-small.png", + "y_offset": 0, + "palette": "keep", + "forceBmp": true + }, { "path": "font/ae-uc-bold.png", "y_offset": 0, @@ -957,6 +963,12 @@ "palette": "keep", "forceBmp": true }, + { + "path": "font/guilder-bold.png", + "y_offset": 0, + "palette": "keep", + "forceBmp": true + }, { "path": "font/ae-uc-tiny.png", "y_offset": 0, @@ -1223,5 +1235,11 @@ "y_offset": 4, "palette": "keep", "forceBmp": true + }, + { + "path": "font/guilder-tiny.png", + "y_offset": 1, + "palette": "keep", + "forceBmp": true } ] diff --git a/src/openrct2/drawing/Font.cpp b/src/openrct2/drawing/Font.cpp index 3279e020e4..e69801d036 100644 --- a/src/openrct2/drawing/Font.cpp +++ b/src/openrct2/drawing/Font.cpp @@ -333,6 +333,13 @@ int32_t font_sprite_get_codepoint_offset(int32_t codepoint) case FORMAT_GERMAN_SINGLE_OPENQUOTE: return 12; + case UNICODE_GUILDER_SIGN: + return SPR_G2_GUILDER_SIGN - SPR_CHAR_START; + + // This is to catch capitalised versions of the guilder sign + case UNICODE_F_WITH_HOOK_UC: + return 'F' - 32; + default: if (codepoint < 32 || codepoint >= 256) codepoint = '?'; @@ -493,6 +500,8 @@ bool font_supports_string_sprite(const utf8* text) case FORMAT_SINGLE_ENDQUOTE: case FORMAT_GERMAN_SINGLE_OPENQUOTE: + case UNICODE_GUILDER_SIGN: + supported = true; break; default: diff --git a/src/openrct2/localisation/Currency.cpp b/src/openrct2/localisation/Currency.cpp index 0322681dba..aa802d0106 100644 --- a/src/openrct2/localisation/Currency.cpp +++ b/src/openrct2/localisation/Currency.cpp @@ -22,7 +22,7 @@ currency_descriptor CurrencyDescriptors[CURRENCY_END] = { { "JPY", 1000, CURRENCY_PREFIX, "\xC2\xA5", CURRENCY_SUFFIX, "YEN", STR_YEN }, // Japanese Yen { "ESP", 10, CURRENCY_SUFFIX, "Pts", CURRENCY_SUFFIX, "Pts", STR_PESETA }, // Spanish Peseta { "ITL", 1000, CURRENCY_PREFIX, "L", CURRENCY_PREFIX, "L", STR_LIRA }, // Italian Lira - { "NLG", 10, CURRENCY_PREFIX, "\xC6\x92", CURRENCY_PREFIX, "fl.", STR_GUILDERS }, // Dutch Guilder + { "NLG", 10, CURRENCY_PREFIX, "\xC6\x92 ", CURRENCY_PREFIX, "fl.", STR_GUILDERS }, // Dutch Guilder { "SEK", 10, CURRENCY_SUFFIX, " kr", CURRENCY_SUFFIX, " kr", STR_KRONA }, // Swedish Krona { "EUR", 10, CURRENCY_PREFIX, "\xE2\x82\xAC", CURRENCY_SUFFIX, "EUR", STR_EUROS }, // Euro { "KRW", 10000, CURRENCY_PREFIX, "\xE2\x82\xA9", CURRENCY_PREFIX, "W", STR_WON }, // South Korean Won diff --git a/src/openrct2/localisation/FormatCodes.h b/src/openrct2/localisation/FormatCodes.h index 5443702f96..d419a97a72 100644 --- a/src/openrct2/localisation/FormatCodes.h +++ b/src/openrct2/localisation/FormatCodes.h @@ -271,4 +271,12 @@ enum UnicodeDingbats UNICODE_DINGBATS_MINUS = 0x2796, }; +enum UnicodeCurrency +{ + UNICODE_GUILDER_SIGN = 402, + + // Not a currency sign, but the guilder sign will be capitalised to this. + UNICODE_F_WITH_HOOK_UC = 401, +}; + #endif diff --git a/src/openrct2/sprites.h b/src/openrct2/sprites.h index bd791b9737..2f51675d13 100644 --- a/src/openrct2/sprites.h +++ b/src/openrct2/sprites.h @@ -896,7 +896,9 @@ enum SPR_G2_GERMAN_OPENQUOTES = SPR_G2_CHAR_BEGIN + 49, - SPR_G2_CHAR_END = SPR_G2_GERMAN_OPENQUOTES, + SPR_G2_GUILDER_SIGN = SPR_G2_CHAR_BEGIN + 50, + + SPR_G2_CHAR_END = SPR_G2_GUILDER_SIGN, SPR_G2_GLYPH_COUNT = (SPR_G2_CHAR_END - SPR_G2_CHAR_BEGIN) + 1, // 0x60000, chosen because it's a round hex number From 00a8f41341cb6056d230e2a86682c9ab0f0371b1 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 23 Jul 2018 23:42:37 +0200 Subject: [PATCH 2/6] Use Russian name for Russian language. This is possible now the sprite font supports it. --- 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 871bea46d6..0cdbd1ef92 100644 --- a/src/openrct2/localisation/Language.cpp +++ b/src/openrct2/localisation/Language.cpp @@ -43,7 +43,7 @@ const language_descriptor LanguagesDescriptors[LANGUAGE_COUNT] = { "nb-NO", "Norwegian", "Norsk", FAMILY_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_NORWEGIAN { "pl-PL", "Polish", "Polski", FAMILY_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_POLISH { "pt-BR", "Portuguese (BR)", u8"Português (BR)", FAMILY_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_PORTUGUESE }, // LANGUAGE_PORTUGUESE_BR - { "ru-RU", "Russian", "Russian", FAMILY_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_RUSSIAN + { "ru-RU", "Russian", u8"Русский", FAMILY_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_RUSSIAN { "fi-FI", "Finnish", "Suomi", FAMILY_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_FINNISH { "sv-SE", "Swedish", "Svenska", FAMILY_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_SWEDISH }, // LANGUAGE_SWEDISH }; From e6472eec0013b2e9458266de12fc92ff9e70e423 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Tue, 24 Jul 2018 13:54:19 +0200 Subject: [PATCH 3/6] Add Turkish sprite font glyphs --- resources/g2/font/g-breve-bold.png | Bin 0 -> 176 bytes resources/g2/font/g-breve-small.png | Bin 0 -> 176 bytes resources/g2/font/g-breve-tiny.png | Bin 0 -> 180 bytes resources/g2/font/g-breve-uc-bold.png | Bin 0 -> 196 bytes resources/g2/font/g-breve-uc-small.png | Bin 0 -> 187 bytes resources/g2/font/g-breve-uc-tiny.png | Bin 0 -> 174 bytes resources/g2/font/i-with-dot-uc-bold.png | Bin 0 -> 164 bytes resources/g2/font/i-with-dot-uc-small.png | Bin 0 -> 164 bytes resources/g2/font/i-with-dot-uc-tiny.png | Bin 0 -> 164 bytes resources/g2/font/i-without-dot-bold.png | Bin 0 -> 161 bytes resources/g2/font/i-without-dot-small.png | Bin 0 -> 161 bytes resources/g2/font/i-without-dot-tiny.png | Bin 0 -> 161 bytes resources/g2/font/s-cedilla-bold.png | Bin 0 -> 185 bytes resources/g2/font/s-cedilla-small.png | Bin 0 -> 181 bytes resources/g2/font/s-cedilla-tiny.png | Bin 0 -> 176 bytes resources/g2/font/s-cedilla-uc-bold.png | Bin 0 -> 187 bytes resources/g2/font/s-cedilla-uc-small.png | Bin 0 -> 188 bytes resources/g2/font/s-cedilla-uc-tiny.png | Bin 0 -> 173 bytes resources/g2/sprites.json | 108 ++++++++++++++++++++++ src/openrct2/drawing/Font.cpp | 21 +++++ src/openrct2/localisation/FormatCodes.h | 10 ++ src/openrct2/sprites.h | 9 +- 22 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 resources/g2/font/g-breve-bold.png create mode 100644 resources/g2/font/g-breve-small.png create mode 100644 resources/g2/font/g-breve-tiny.png create mode 100644 resources/g2/font/g-breve-uc-bold.png create mode 100644 resources/g2/font/g-breve-uc-small.png create mode 100644 resources/g2/font/g-breve-uc-tiny.png create mode 100644 resources/g2/font/i-with-dot-uc-bold.png create mode 100644 resources/g2/font/i-with-dot-uc-small.png create mode 100644 resources/g2/font/i-with-dot-uc-tiny.png create mode 100644 resources/g2/font/i-without-dot-bold.png create mode 100644 resources/g2/font/i-without-dot-small.png create mode 100644 resources/g2/font/i-without-dot-tiny.png create mode 100644 resources/g2/font/s-cedilla-bold.png create mode 100644 resources/g2/font/s-cedilla-small.png create mode 100644 resources/g2/font/s-cedilla-tiny.png create mode 100644 resources/g2/font/s-cedilla-uc-bold.png create mode 100644 resources/g2/font/s-cedilla-uc-small.png create mode 100644 resources/g2/font/s-cedilla-uc-tiny.png diff --git a/resources/g2/font/g-breve-bold.png b/resources/g2/font/g-breve-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..bee63f5345186f70c30a448388b6714369c49769 GIT binary patch literal 176 zcmeAS@N?(olHy`uVBq!ia0y~yU|?rpVBle5W?*2r{M)}7#0l^Tapjd0=wSH&pP|Fp z_&?9SkT3=Y2F8*gzhDN3XE)M7oFs2|7lsa2Sq}yV2F?PH$YKTtZeb8+WSBKa0%UH9 zr>`sfBX$XHF8*s5R&HisV3756aSY+Op8O!{zyhhm42sJSUbrH$L1BVU!UKB-hN;^) WGIRbKu4Z6hVDNPHb6Mw<&;$VKC@#kU literal 0 HcmV?d00001 diff --git a/resources/g2/font/g-breve-small.png b/resources/g2/font/g-breve-small.png new file mode 100644 index 0000000000000000000000000000000000000000..6cc6d7d56437e60977f8a85e2256f96807a5d75a GIT binary patch literal 176 zcmeAS@N?(olHy`uVBq!ia0y~yU|?flVBle5W?*2ju~gX$;sp4FxH1L`bTIt?&(L9P z{NIP=%RdGN2F8*gzhDN3XE)M7oFs2|7lsa2Sq}yV2F?PH$YKTtZeb8+WSBKaf`Ng7 zy~NYkmHiRB1UHvX$@Uuu85kI3JzX3_IIbr@$Vv#%O=y_#IUysAF+#vYF5y8s1HbP0l+XkKYJM#W literal 0 HcmV?d00001 diff --git a/resources/g2/font/g-breve-tiny.png b/resources/g2/font/g-breve-tiny.png new file mode 100644 index 0000000000000000000000000000000000000000..ef6bca05f77ac418ce21422185eff75c48951494 GIT binary patch literal 180 zcmeAS@N?(olHy`uVBq!ia0y~yU|?lnVBln8W?*1wKg`F=z`(#0;1lA?;Vsa?@c%zU zhq3YhxnF`57#J8BOM?7@862M7NCR<_yxm{8xEIf17k^$UoeBivm0q3PLj8~3quF1tOo-F180FpWHAE+w=f7ZGR&GI!N9=4 zUgGKN%KnI5f}7b`qc*RWfq}u$)5S4_<9c#J)WHJ>B+ngSSaw)KBE(r*Vws(8!i;rS r4;bWTF&@6Ml+|G)bAsuadI<*RA|7!ymEIZ#1_lOCS3j3^P6QL70(Y)*J~2 z1_t&LPhVH|N9+>Z@=Wuu7)voQFlczXIEHXsPks<}V1d+O1|?;QXZGncHa8{4Ssd

MqWHL+dzY1_lNOPgg&ebxsLQ0QM#>AOHXW literal 0 HcmV?d00001 diff --git a/resources/g2/font/g-breve-uc-tiny.png b/resources/g2/font/g-breve-uc-tiny.png new file mode 100644 index 0000000000000000000000000000000000000000..623092cdb5f2b435706853746d51fafdf07b9195 GIT binary patch literal 174 zcmeAS@N?(olHy`uVBq!ia0y~yU|?lnVBln8W?*1wKg`F=z`(#0;1l91C@;{#@c%zU zhq3YhBTCw@85kHCOM?7@862M7NCR<_yxmzopr0GF>SUH||9 literal 0 HcmV?d00001 diff --git a/resources/g2/font/i-with-dot-uc-bold.png b/resources/g2/font/i-with-dot-uc-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..220fbe009a05f0e32a2e9961ba5e9eec59055fa8 GIT binary patch literal 164 zcmeAS@N?(olHy`uVBq!ia0y~yU|?ZjVBltAW?*1YJ$b}}fq{W1z$e6&-AkZ@;s1Yz z4rAm0dhdiLGB7YOmIV0)GdMiEkp|)?)iC#L`a literal 0 HcmV?d00001 diff --git a/resources/g2/font/i-with-dot-uc-small.png b/resources/g2/font/i-with-dot-uc-small.png new file mode 100644 index 0000000000000000000000000000000000000000..9262c3c9bef3e8252949de2f6a1100221f777d09 GIT binary patch literal 164 zcmeAS@N?(olHy`uVBq!ia0y~yU|?ooVBlr~k;g^vJ2EgZ@C5jTxGKpAbTIt?&(L9P z{NJv8r5pnT17k^$UoeBivm0q3PLj8~3quF1tOo-F180FpWHAE+w=f7ZGR&GI!N9=4 zUgGKN%KnI5f?JW-Z=LBk1_lN}PZ!4!j_b(*2{R5e96E7bTIt?&(L9P z{NK~wdM*P417k^$UoeBivm0q3PLj8~3quF1tOo-F180FpWHAE+w=f7ZGR&GI!N9=4 zUgGKN%KnI5g2P0*zw^c`1_lN`PZ!4!j_b(*2{W2mcp2mqn15c~w@#ITfq}u()z4*} HQ$iB}!Z9Wv literal 0 HcmV?d00001 diff --git a/resources/g2/font/i-without-dot-tiny.png b/resources/g2/font/i-without-dot-tiny.png new file mode 100644 index 0000000000000000000000000000000000000000..6a559798855f2a602eaa11526b6b7f6b38fa1f75 GIT binary patch literal 161 zcmeAS@N?(olHy`uVBq!ia0y~yU|?ooU|?kek$>g)88R?1@C5jTxH8BJbTIt?&(L9P z{Ga=?@lFN?2F8*gzhDN3XE)M7oFs2|7lsa2Sq}yV2F?PH$YKTtZeb8+WSBKaf`Ng7 zy~NYkmHiRB1c!-uoBfo73=9l>o-U3d9M_Wr5@s;Bu`zJfF{z52TGq$Fz`)??>gTe~ HDWM4fvWg^^ literal 0 HcmV?d00001 diff --git a/resources/g2/font/s-cedilla-bold.png b/resources/g2/font/s-cedilla-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..c041b2b1d09c8fbd5dd6d1ec16066546b5443d60 GIT binary patch literal 185 zcmeAS@N?(olHy`uVBq!ia0y~yU|?rpVBlh6W?*1oU9@H%0|Nt3fKP}kLx?~J!~g#b z9mdB0mwgkt%)r3FSQ6wH%;50sMjD8dO>_%)r1c48n{Iv*t*E z%q{Wsb!C6VF2QYVDi`s0Hvs02T=zWNF6rFWp2)5Y7XN$d_{uoGC$8W hR-RSt5yEg!~g#b z9mdB0IlginV_;xlED7=pW^j0RBMrn!@^*J&=wOxgU|?Y2EbxddW?lFz;kcgsASofh_JBceqvL0W!zFBN#cXVHYz%5^ Xm^}rOBn=rD7#KWV{an^LB{Ts5u1P8O literal 0 HcmV?d00001 diff --git a/resources/g2/font/s-cedilla-uc-bold.png b/resources/g2/font/s-cedilla-uc-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..4de3d02b2bc7f777eed96cbd9c0568d52c969a68 GIT binary patch literal 187 zcmeAS@N?(olHy`uVBq!ia0y~yVBlb2VBle5W?*1Y`XIsw;sp4FxH8BJbTIt?&(L9P z{Ga=?@lFN?2F8*gzhDN3XE)M7oFs2|7lsa2Sq}yV2F?PH$YKTtZeb8+WSBKaf`Ng7 zy~NYkmHiRB1ed<-nTRB91_lNVPZ!4!j_b(}q7E*QI%i-yC-Ih4+e$%&ZP!W!%CmTy i(-;q5VdnY9!?4ztbK+M;u{Z_>1_n=8KbLh*2~7YAZ7;q6 literal 0 HcmV?d00001 diff --git a/resources/g2/font/s-cedilla-uc-small.png b/resources/g2/font/s-cedilla-uc-small.png new file mode 100644 index 0000000000000000000000000000000000000000..fe23aa3ffe0255e42a996d8a43079a74e02539eb GIT binary patch literal 188 zcmeAS@N?(olHy`uVBq!ia0y~yU|?flVBle5W?*2ju~gX$;sp4FxJnrdbTIt?&(L9P z{NK`S(pLrs2F8*gzhDN3XE)M7oFs2|7lsa2Sq}yV2F?PH$YKTtZeb8+WSBKaf`Ng7 zy~NYkmHiRB1edPG)~qY<7#J8dJzX3_IIbr@NJ#(4US(K jnx8SYz2xCB<6)Swi(_6;c-L_T1_lOCS3j3^P6 Date: Tue, 24 Jul 2018 21:07:02 +0200 Subject: [PATCH 4/6] Add sprite font glyph for interpunct --- resources/g2/font/interpunct-bold.png | Bin 0 -> 873 bytes resources/g2/font/interpunct-small.png | Bin 0 -> 870 bytes resources/g2/font/interpunct-tiny.png | Bin 0 -> 870 bytes resources/g2/sprites.json | 18 ++++++++++++++++++ src/openrct2/drawing/Font.cpp | 5 +++++ src/openrct2/localisation/FormatCodes.h | 5 +++++ src/openrct2/sprites.h | 4 +++- 7 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 resources/g2/font/interpunct-bold.png create mode 100644 resources/g2/font/interpunct-small.png create mode 100644 resources/g2/font/interpunct-tiny.png diff --git a/resources/g2/font/interpunct-bold.png b/resources/g2/font/interpunct-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..9f6982b726b26cac837c4b633c24316861e41ccc GIT binary patch literal 873 zcmeAS@N?(olHy`uVBq!ia0y~yU|<1Z4rT@hhI#sVJ`4=Z3;{kNt_*mAxU#acv9Z3h zvwd)|cXD!cadCcgbMy4+^VhH6e)#a^+qd6;{%owzU~kRf@68<@Eu5V#UtX=>-fca7 zw*T_=@w@jIpFZDx|M6mHZT4_$?tE|Y`f&OFWcB&Q#+#d+_fHQ$y*~f;@%HDp7k__$ z*j<_-UYnuZo}oXOeR)3n{%-#3%Y{Fmmj3@-|NrOs|G)eH|39qEz~Ilo5YNt@&(B{k zE#0rKzS!D&v%mlG^z`fX^{?m8|G$5~w6U~d%kvfy>W8Cb@6QH=GESl zcLy&%9l!l{y1coxzPqw@u(o%yd33&We!GAB{P_9X^S7U`KYV-g`RB{;f8Wn<&mbJk zAfC=3U(KN2&u%_n+6S&#(Uf_%Oe)xw>|^v3a_^b9r!ZcXIOV^78fF-TUXyKfitZ{mYl% zzkmOqK{}s7eLB1Ga(?IC(!r;-)9*XCKaO7fynOfj{>z`&KmUFG`+sh2etvUtad&y; zU~TU)>(Odv^Nq z)%Dl+&whUW@aNC3|JyS#gflP{GcfcsFsx=^IL^TEn4RH2JHvl}=l|8k|5q>mfBU+> zIzzrO!(@Ag?d}Y>{TcoTGyKmN|KDx=f3g4n?b-iNxBtJrm;n^=<_zA>4B`Il*~#Md z<=T_`-Ip&;-o3l|{Q1?-pP&E#-=0A_ox!-8+rD4if3bZ0cJ=(**8T6JSAQ4f$IJh(SN}iT`2TkM|L46K7#Pmpf3S*yfq}6k$S;_|;n|He z1_lOkPZ!4!j+w~`2}wx_2}vm_Z2~-J&hRiWd}5GXUAOBBD9d=d`njxgN@xNA2}W;K literal 0 HcmV?d00001 diff --git a/resources/g2/font/interpunct-small.png b/resources/g2/font/interpunct-small.png new file mode 100644 index 0000000000000000000000000000000000000000..8e0846b989c2143f81c928b0419a0c35bb21b188 GIT binary patch literal 870 zcmeAS@N?(olHy`uVBq!ia0y~yU|?ooU|`_@ku{%7O+owspAc6Dyg*!8S=rcF-`Uwd zIM_QmIl8zwzqz@2`t~Pw)@QJ{X7Kmsj*b@2&XzB))^G2&o<7@u z`TF?X`-@MX@4o+dv9mUNxHWgaw|ITHe1Ed~{9@zH&CdI$ho4@bfBSg*^V^HRzd!6Q z%@D86P;SrAAI!cypM8Hf|MlgTw32<**aL;JJ~!s-#NeCzkPoE{O$SM&(|NmJ^B3e<@dku=eK7N4rUNf zXOOREQ153qpD*sdUOjrheg66I?)$}y-}fK>zu8|~IN4mf++Djn+Ce&xwyEyymGL% zezLW7vA2JFeDdt_>h;}|k1t<;`|$bC_w5-%Rvzkc}h=hy%385qJD7>XGf`WYBjGcX)yV0g^V@SmOGzrXYU>f-;a7yrL~-Cvy{ z-gUhT|Nn2#Af3)&T+MCYFYdosK7PA;{%!02_tC3Am+$^Q{q*nc z_y1piuP)4BF3;|+&mV0spB-#mo$lRVpS^f;{qEJ1&mUg>{PyAhpYNM{d;j0g@c%Z$ z|Nji^*~#qL$?E;>(#_TE*~#X!r<>27KKt?G;?t+iXHR#Ijtbt%Kzi#|JSSkpKbhqyZ!(3-V6*3XYW5)#lXP8SQ6wH%;50sMj8VH tgNUb#V+hC0Irf%Q~loCIEJvZEpYo literal 0 HcmV?d00001 diff --git a/resources/g2/font/interpunct-tiny.png b/resources/g2/font/interpunct-tiny.png new file mode 100644 index 0000000000000000000000000000000000000000..a1fc02cdd65dc5e4fc74de7cc9c069850cbda923 GIT binary patch literal 870 zcmeAS@N?(olHy`uVBq!ia0y~yU|m6er^jrE-5;p}Yr@@oC|ZtLl@{g@vxi%A=X;CShs*aTtIsbs-rVfGe|q@o_4&7tw?DtV`1||A?$QkL z+6?9P4E@3E%k$ayck^FgF8ukl^#AAj|3An7|K0!p|6yeY27d;Icy{)De*SuC>3((f z#n#rF{r!)pr(dtHe?5Qx|NZ-=jfIu%#r6H=t>e|*^R>h4jg$MWi)TAGulAn2J9zQw z`0cmT<;|t_-Ic9_wY`(gqw}5f+x^?;$IsuMzx{mu;oFnXKVN?T`+k0V2H{`^@pK0H zY6kUwcJuk-?(5Z~_uJ>65AVKTy!d_p;s2ZcwS|+-rOVy5yTh%QCp+&h4nE(Ue0_TH zc-ami-`R&{9U%veQ{rmq6 z()kSP)7g!e^E>aB4nD1&e&4zMarENn<-6baU;e!Q`S0uB|8r~e^P7u{yUQyFYwIUl zTNiu#x5p>XF0WqSJ^A?Z^|ue7|9sz`A>Nz4IGDdaUcNtDdv>+`>h|E>v(t~SuD`y2 z_Veq9KYxDx-=2XXoPnX3fuWy)VKoE8aR!FR>Zo8S;%8 zCfhS?cW1cm&+tE(;eWpP|8C>|i~av^&;Eb9{r~O744{ZNXYh7r2=`~tP8P2(*Ph(( zzI<`=?%mDj&#!*|{QUp__6*YL493;m_Wk1ii{<0DtLNXg?tdS>`g8g2@6%8J-hTi8 z_4n$+4CeCe?)v=E_VU@m#?|TG{q@<4C)e*@J^B3M)z5Dq{{Q*DxwrTK?F|2KGyMP0 zz@DAVo}H}T-!9!;&7PfXK6|?P?CG-~KQ2Cf+I;qO=jiC*?Cj*~>U?AUW^?`N_QtE7 zjrV)&U-s929aZN=Zvd0Ev1s@T_4zWev(Np00i_>zopr0HI=Rxc~qF literal 0 HcmV?d00001 diff --git a/resources/g2/sprites.json b/resources/g2/sprites.json index 10ee4f98e7..fc40afc72e 100644 --- a/resources/g2/sprites.json +++ b/resources/g2/sprites.json @@ -740,6 +740,12 @@ "palette": "keep", "forceBmp": true }, + { + "path": "font/interpunct-small.png", + "y_offset": 3, + "palette": "keep", + "forceBmp": true + }, { "path": "font/ae-uc-bold.png", "y_offset": 0, @@ -1041,6 +1047,12 @@ "palette": "keep", "forceBmp": true }, + { + "path": "font/interpunct-bold.png", + "y_offset": 3, + "palette": "keep", + "forceBmp": true + }, { "path": "font/ae-uc-tiny.png", "y_offset": 0, @@ -1349,5 +1361,11 @@ "y_offset": 1, "palette": "keep", "forceBmp": true + }, + { + "path": "font/interpunct-tiny.png", + "y_offset": 2, + "palette": "keep", + "forceBmp": true } ] diff --git a/src/openrct2/drawing/Font.cpp b/src/openrct2/drawing/Font.cpp index 5ca1c9aa6f..aa32206de3 100644 --- a/src/openrct2/drawing/Font.cpp +++ b/src/openrct2/drawing/Font.cpp @@ -350,6 +350,9 @@ int32_t font_sprite_get_codepoint_offset(int32_t codepoint) case UNICODE_S_CEDILLA: return SPR_G2_S_CEDILLA_LOWER - SPR_CHAR_START; + case UNICODE_INTERPUNCT: + return SPR_G2_INTERPUNCT - SPR_CHAR_START; + // This is to catch capitalised versions of the guilder sign case UNICODE_F_WITH_HOOK_UC: return 'F' - 32; @@ -523,6 +526,8 @@ bool font_supports_string_sprite(const utf8* text) case UNICODE_I_WITHOUT_DOT: case UNICODE_S_CEDILLA: + case UNICODE_INTERPUNCT: + supported = true; break; default: diff --git a/src/openrct2/localisation/FormatCodes.h b/src/openrct2/localisation/FormatCodes.h index 91208cd2a4..bd2f997360 100644 --- a/src/openrct2/localisation/FormatCodes.h +++ b/src/openrct2/localisation/FormatCodes.h @@ -179,6 +179,11 @@ enum UnicodePolish UNICODE_Z_ACUTE = 378, }; +enum UnicodeCatalan +{ + UNICODE_INTERPUNCT = 183, +}; + enum UnicodeGerman { UNICODE_CAPITAL_SHARP_S = 0x1E9E, diff --git a/src/openrct2/sprites.h b/src/openrct2/sprites.h index b894f7b911..c496b15e4d 100644 --- a/src/openrct2/sprites.h +++ b/src/openrct2/sprites.h @@ -905,7 +905,9 @@ enum SPR_G2_I_WITHOUT_DOT_LOWER = SPR_G2_CHAR_BEGIN + 55, SPR_G2_S_CEDILLA_LOWER = SPR_G2_CHAR_BEGIN + 56, - SPR_G2_CHAR_END = SPR_G2_S_CEDILLA_LOWER, + SPR_G2_INTERPUNCT = SPR_G2_CHAR_BEGIN + 57, + + SPR_G2_CHAR_END = SPR_G2_INTERPUNCT, SPR_G2_GLYPH_COUNT = (SPR_G2_CHAR_END - SPR_G2_CHAR_BEGIN) + 1, // 0x60000, chosen because it's a round hex number From 99a110dfe54d17f1d31ca69eeb6c5eb0e9a01b23 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Tue, 24 Jul 2018 21:09:34 +0200 Subject: [PATCH 5/6] Amend changelog --- distribution/changelog.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index c60ba6feaf..2cf9059f8a 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -4,7 +4,7 @@ - Feature: [#6998] Guests now wait for passing vehicles before crossing railway tracks. - Feature: [#7694] Debug option to visualize paths that the game detects as wide. - Feature: [#7771] Danish translation. -- Feature: [#7802] Add sprite font glyphs for Russian. +- Feature: [#7797, #7802, #7821] Add sprite font glyphs for Danish, Norwegian, Russian, Turkish and Catalan. - Fix: [#3177] Wrong keys displayed in shortcut menu. - Fix: [#4039] Add sprite font glyph for German opening quotation mark. - Fix: [#7533] Screenshot is incorrectly named/file is not generated in CJK language. @@ -23,7 +23,6 @@ - Fix: [#7773] Once research has been completed, player is still charged for research. - Fix: [#7786] Crash when importing a track design. - Fix: [#7793] Duplicate private keys generated. -- Fix: [#7797] Add sprite font glyphs for Æ and Ø, needed for Norwegian and Danish. 0.2.0 (2018-06-10) ------------------------------------------------------------------------ From c48e204813881333ae15a11652d55c3b3f3ec8c6 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Tue, 24 Jul 2018 21:32:00 +0200 Subject: [PATCH 6/6] Add #7817 to changelog [ci skip] --- distribution/changelog.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 2cf9059f8a..f11e482ba0 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -6,7 +6,7 @@ - Feature: [#7771] Danish translation. - Feature: [#7797, #7802, #7821] Add sprite font glyphs for Danish, Norwegian, Russian, Turkish and Catalan. - Fix: [#3177] Wrong keys displayed in shortcut menu. -- Fix: [#4039] Add sprite font glyph for German opening quotation mark. +- Fix: [#4039] No sprite font glyph for German opening quotation mark. - Fix: [#7533] Screenshot is incorrectly named/file is not generated in CJK language. - Fix: [#7628] Always-researched items can be modified in the inventory list. - Fix: [#7643] No Money scenarios with funding set to zero. @@ -23,6 +23,7 @@ - Fix: [#7773] Once research has been completed, player is still charged for research. - Fix: [#7786] Crash when importing a track design. - Fix: [#7793] Duplicate private keys generated. +- Fix: [#7817] No sprite font glyph for interpunct. 0.2.0 (2018-06-10) ------------------------------------------------------------------------