1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Add glyphs for Ő, ő, Ű and ű

This commit is contained in:
Gymnasiast
2018-09-01 20:41:44 +02:00
parent e6d3d15ea1
commit 3b5a766f34
16 changed files with 101 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

View File

@@ -794,6 +794,30 @@
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/o-double-acute-uc-small.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/o-double-acute-small.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/u-double-acute-uc-small.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/u-double-acute-small.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/ae-uc-bold.png",
"y_offset": 0,
@@ -1149,6 +1173,30 @@
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/o-double-acute-uc-bold.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/o-double-acute-bold.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/u-double-acute-uc-bold.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/u-double-acute-bold.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/ae-uc-tiny.png",
"y_offset": 0,
@@ -1511,5 +1559,29 @@
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/o-double-acute-uc-tiny.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/o-double-acute-tiny.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/u-double-acute-uc-tiny.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
},
{
"path": "font/latin/u-double-acute-tiny.png",
"y_offset": 0,
"palette": "keep",
"forceBmp": true
}
]

View File

@@ -385,6 +385,16 @@ int32_t font_sprite_get_codepoint_offset(int32_t codepoint)
case UNICODE_Y_ACUTE:
return SPR_G2_Y_ACUTE_LOWER - SPR_CHAR_START;
// Hungarian
case UNICODE_O_DOUBLE_ACUTE_UC:
return SPR_G2_O_DOUBLE_ACUTE_UPPER - SPR_CHAR_START;
case UNICODE_O_DOUBLE_ACUTE:
return SPR_G2_O_DOUBLE_ACUTE_LOWER - SPR_CHAR_START;
case UNICODE_U_DOUBLE_ACUTE_UC:
return SPR_G2_U_DOUBLE_ACUTE_UPPER - SPR_CHAR_START;
case UNICODE_U_DOUBLE_ACUTE:
return SPR_G2_U_DOUBLE_ACUTE_LOWER - SPR_CHAR_START;
default:
if (codepoint < 32 || codepoint >= 256)
codepoint = '?';
@@ -569,6 +579,11 @@ bool font_supports_string_sprite(const utf8* text)
case UNICODE_Y_ACUTE_UC:
case UNICODE_Y_ACUTE:
case UNICODE_O_DOUBLE_ACUTE_UC:
case UNICODE_O_DOUBLE_ACUTE:
case UNICODE_U_DOUBLE_ACUTE_UC:
case UNICODE_U_DOUBLE_ACUTE:
supported = true;
break;
default:

View File

@@ -317,4 +317,12 @@ enum UnicodeCzech
UNICODE_Y_ACUTE = 253,
};
enum UnicodeHungarian
{
UNICODE_O_DOUBLE_ACUTE_UC = 336,
UNICODE_O_DOUBLE_ACUTE = 337,
UNICODE_U_DOUBLE_ACUTE_UC = 368,
UNICODE_U_DOUBLE_ACUTE = 369,
};
#endif

View File

@@ -919,7 +919,12 @@ enum
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_O_DOUBLE_ACUTE_UPPER = SPR_G2_CHAR_BEGIN + 66,
SPR_G2_O_DOUBLE_ACUTE_LOWER = SPR_G2_CHAR_BEGIN + 67,
SPR_G2_U_DOUBLE_ACUTE_UPPER = SPR_G2_CHAR_BEGIN + 68,
SPR_G2_U_DOUBLE_ACUTE_LOWER = SPR_G2_CHAR_BEGIN + 69,
SPR_G2_CHAR_END = SPR_G2_U_DOUBLE_ACUTE_LOWER,
SPR_G2_GLYPH_COUNT = (SPR_G2_CHAR_END - SPR_G2_CHAR_BEGIN) + 1,
// 0x60000, chosen because it's a round hex number