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:
BIN
resources/g2/font/y-acute-bold.png
Normal file
BIN
resources/g2/font/y-acute-bold.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 184 B |
BIN
resources/g2/font/y-acute-small.png
Normal file
BIN
resources/g2/font/y-acute-small.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 181 B |
BIN
resources/g2/font/y-acute-tiny.png
Normal file
BIN
resources/g2/font/y-acute-tiny.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 177 B |
BIN
resources/g2/font/y-acute-uc-bold.png
Normal file
BIN
resources/g2/font/y-acute-uc-bold.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 187 B |
BIN
resources/g2/font/y-acute-uc-small.png
Normal file
BIN
resources/g2/font/y-acute-uc-small.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 187 B |
BIN
resources/g2/font/y-acute-uc-tiny.png
Normal file
BIN
resources/g2/font/y-acute-uc-tiny.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 173 B |
@@ -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
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user