1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 02:35:46 +01:00

Add y with acute

This commit is contained in:
Gymnasiast
2018-08-23 12:55:31 +02:00
parent ab1044d2de
commit 3b97f6d9f6
10 changed files with 48 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 B

View File

@@ -782,6 +782,18 @@
"palette": "keep",
"forceBmp": true
},
{
"path": "font/y-acute-uc-small.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/y-acute-small.png",
"y_offset": 1,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/ae-uc-bold.png",
"y_offset": 0,
@@ -1125,6 +1137,18 @@
"palette": "keep",
"forceBmp": true
},
{
"path": "font/y-acute-uc-bold.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/y-acute-bold.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/ae-uc-tiny.png",
"y_offset": 0,
@@ -1475,5 +1499,17 @@
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/y-acute-uc-tiny.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/y-acute-tiny.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
}
]

View File

@@ -380,6 +380,10 @@ int32_t font_sprite_get_codepoint_offset(int32_t codepoint)
return SPR_G2_C_CARON_UPPER - SPR_CHAR_START;
case UNICODE_C_CARON:
return SPR_G2_C_CARON_LOWER - SPR_CHAR_START;
case UNICODE_Y_ACUTE_UC:
return SPR_G2_Y_ACUTE_UPPER - SPR_CHAR_START;
case UNICODE_Y_ACUTE:
return SPR_G2_Y_ACUTE_LOWER - SPR_CHAR_START;
default:
if (codepoint < 32 || codepoint >= 256)
@@ -562,6 +566,8 @@ bool font_supports_string_sprite(const utf8* text)
case UNICODE_C_CARON_UC:
case UNICODE_C_CARON:
case UNICODE_Y_ACUTE_UC:
case UNICODE_Y_ACUTE:
supported = true;
break;

View File

@@ -313,6 +313,8 @@ enum UnicodeCzech
{
UNICODE_C_CARON_UC = 268,
UNICODE_C_CARON = 269,
UNICODE_Y_ACUTE_UC = 221,
UNICODE_Y_ACUTE = 253,
};
#endif

View File

@@ -916,7 +916,10 @@ enum
SPR_G2_C_CARON_UPPER = SPR_G2_CHAR_BEGIN + 62,
SPR_G2_C_CARON_LOWER = SPR_G2_CHAR_BEGIN + 63,
SPR_G2_CHAR_END = SPR_G2_C_CARON_LOWER,
SPR_G2_Y_ACUTE_UPPER = SPR_G2_CHAR_BEGIN + 64,
SPR_G2_Y_ACUTE_LOWER = SPR_G2_CHAR_BEGIN + 65,
SPR_G2_CHAR_END = SPR_G2_Y_ACUTE_LOWER,
SPR_G2_GLYPH_COUNT = (SPR_G2_CHAR_END - SPR_G2_CHAR_BEGIN) + 1,
// 0x60000, chosen because it's a round hex number