Fix: bad kerning on lowercase 'j' character (original bug)

This commit is contained in:
Michael Steenbeek 2020-07-26 23:19:16 +02:00 committed by GitHub
parent 8217acd86f
commit 41162cc22f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 25 additions and 1 deletions

View File

@ -53,6 +53,7 @@
- Fix: [#12285] On-ride photo profit assumes every guest buys one.
- Fix: [#12297] OpenGL renderer causing artifacts.
- 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.
- Improved: [#6530] Allow water and land height changes on park borders.
- Improved: [#11390] Build hash written to screenshot metadata.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -958,6 +958,12 @@
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/j-small.png",
"x_offset": -1,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/ae-uc-bold.png",
"y_offset": 0,
@ -1439,6 +1445,12 @@
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/j-bold.png",
"x_offset": -1,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/ae-uc-tiny.png",
"y_offset": 0,
@ -1927,5 +1939,11 @@
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/j-tiny.png",
"x_offset": 0,
"palette": "keep",
"forceBmp": true
}
]

View File

@ -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::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::j, SPR_G2_J - SPR_CHAR_START },
{ UnicodeChar::l_stroke_uc, CSChar::l_stroke_uc - 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 },

View File

@ -145,6 +145,7 @@ namespace CSChar
namespace UnicodeChar
{
// Latin alphabet
constexpr char32_t j = 0x6A;
constexpr char32_t ae_uc = 0xC6;
constexpr char32_t o_stroke_uc = 0xD8;
constexpr char32_t y_acute_uc = 0xDD;

View File

@ -965,7 +965,10 @@ enum
SPR_G2_Z_CARON_LOWER = SPR_G2_CHAR_BEGIN + 85,
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_END = SPR_G2_CHAR_END,