mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-17 04:52:31 +01:00
Fix: bad kerning on lowercase 'j' character (original bug)
This commit is contained in:
committed by
GitHub
parent
8217acd86f
commit
41162cc22f
@@ -53,6 +53,7 @@
|
|||||||
- Fix: [#12285] On-ride photo profit assumes every guest buys one.
|
- Fix: [#12285] On-ride photo profit assumes every guest buys one.
|
||||||
- Fix: [#12297] OpenGL renderer causing artifacts.
|
- Fix: [#12297] OpenGL renderer causing artifacts.
|
||||||
- Fix: [#12312] Softlock when loading save file via command line fails.
|
- Fix: [#12312] Softlock when loading save file via command line fails.
|
||||||
|
- Fix: 'j' character has broken kerning (original bug).
|
||||||
- Fix: RCT1 scenarios have more items in the object list than are present in the park or the research list.
|
- Fix: RCT1 scenarios have more items in the object list than are present in the park or the research list.
|
||||||
- Improved: [#6530] Allow water and land height changes on park borders.
|
- Improved: [#6530] Allow water and land height changes on park borders.
|
||||||
- Improved: [#11390] Build hash written to screenshot metadata.
|
- Improved: [#11390] Build hash written to screenshot metadata.
|
||||||
|
|||||||
BIN
resources/g2/font/latin/j-bold.png
Normal file
BIN
resources/g2/font/latin/j-bold.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.6 KiB |
BIN
resources/g2/font/latin/j-small.png
Normal file
BIN
resources/g2/font/latin/j-small.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
BIN
resources/g2/font/latin/j-tiny.png
Normal file
BIN
resources/g2/font/latin/j-tiny.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
@@ -958,6 +958,12 @@
|
|||||||
"palette": "keep",
|
"palette": "keep",
|
||||||
"forceBmp": true
|
"forceBmp": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "font/latin/j-small.png",
|
||||||
|
"x_offset": -1,
|
||||||
|
"palette": "keep",
|
||||||
|
"forceBmp": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "font/latin/ae-uc-bold.png",
|
"path": "font/latin/ae-uc-bold.png",
|
||||||
"y_offset": 0,
|
"y_offset": 0,
|
||||||
@@ -1439,6 +1445,12 @@
|
|||||||
"palette": "keep",
|
"palette": "keep",
|
||||||
"forceBmp": true
|
"forceBmp": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "font/latin/j-bold.png",
|
||||||
|
"x_offset": -1,
|
||||||
|
"palette": "keep",
|
||||||
|
"forceBmp": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "font/latin/ae-uc-tiny.png",
|
"path": "font/latin/ae-uc-tiny.png",
|
||||||
"y_offset": 0,
|
"y_offset": 0,
|
||||||
@@ -1927,5 +1939,11 @@
|
|||||||
"y_offset": 0,
|
"y_offset": 0,
|
||||||
"palette": "keep",
|
"palette": "keep",
|
||||||
"forceBmp": true
|
"forceBmp": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "font/latin/j-tiny.png",
|
||||||
|
"x_offset": 0,
|
||||||
|
"palette": "keep",
|
||||||
|
"forceBmp": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ static const std::unordered_map<char32_t, int32_t> codepointOffsetMap = {
|
|||||||
{ UnicodeChar::g_breve, SPR_G2_G_BREVE_LOWER - SPR_CHAR_START },
|
{ UnicodeChar::g_breve, SPR_G2_G_BREVE_LOWER - SPR_CHAR_START },
|
||||||
{ UnicodeChar::i_with_dot_uc, SPR_G2_I_WITH_DOT_UPPER - SPR_CHAR_START },
|
{ UnicodeChar::i_with_dot_uc, SPR_G2_I_WITH_DOT_UPPER - SPR_CHAR_START },
|
||||||
{ UnicodeChar::i_without_dot, SPR_G2_I_WITHOUT_DOT_LOWER - SPR_CHAR_START },
|
{ UnicodeChar::i_without_dot, SPR_G2_I_WITHOUT_DOT_LOWER - SPR_CHAR_START },
|
||||||
|
{ UnicodeChar::j, SPR_G2_J - SPR_CHAR_START },
|
||||||
{ UnicodeChar::l_stroke_uc, CSChar::l_stroke_uc - CS_SPRITE_FONT_OFFSET },
|
{ UnicodeChar::l_stroke_uc, CSChar::l_stroke_uc - CS_SPRITE_FONT_OFFSET },
|
||||||
{ UnicodeChar::l_stroke, CSChar::l_stroke - CS_SPRITE_FONT_OFFSET },
|
{ 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_uc, CSChar::n_acute_uc - CS_SPRITE_FONT_OFFSET },
|
||||||
|
|||||||
@@ -145,6 +145,7 @@ namespace CSChar
|
|||||||
namespace UnicodeChar
|
namespace UnicodeChar
|
||||||
{
|
{
|
||||||
// Latin alphabet
|
// Latin alphabet
|
||||||
|
constexpr char32_t j = 0x6A;
|
||||||
constexpr char32_t ae_uc = 0xC6;
|
constexpr char32_t ae_uc = 0xC6;
|
||||||
constexpr char32_t o_stroke_uc = 0xD8;
|
constexpr char32_t o_stroke_uc = 0xD8;
|
||||||
constexpr char32_t y_acute_uc = 0xDD;
|
constexpr char32_t y_acute_uc = 0xDD;
|
||||||
|
|||||||
@@ -965,7 +965,10 @@ enum
|
|||||||
SPR_G2_Z_CARON_LOWER = SPR_G2_CHAR_BEGIN + 85,
|
SPR_G2_Z_CARON_LOWER = SPR_G2_CHAR_BEGIN + 85,
|
||||||
|
|
||||||
SPR_G2_ROUBLE_SIGN = SPR_G2_CHAR_BEGIN + 86,
|
SPR_G2_ROUBLE_SIGN = SPR_G2_CHAR_BEGIN + 86,
|
||||||
SPR_G2_GLYPH_COUNT = (SPR_G2_ROUBLE_SIGN - SPR_G2_CHAR_BEGIN) + 1,
|
|
||||||
|
SPR_G2_J = SPR_G2_CHAR_BEGIN + 87,
|
||||||
|
|
||||||
|
SPR_G2_GLYPH_COUNT = (SPR_G2_J - SPR_G2_CHAR_BEGIN) + 1,
|
||||||
SPR_G2_CHAR_END = SPR_G2_CHAR_BEGIN + SPR_G2_GLYPH_COUNT * 3,
|
SPR_G2_CHAR_END = SPR_G2_CHAR_BEGIN + SPR_G2_GLYPH_COUNT * 3,
|
||||||
SPR_G2_END = SPR_G2_CHAR_END,
|
SPR_G2_END = SPR_G2_CHAR_END,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user