mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 21:43:06 +01:00
Add sprite font glyph for interpunct
This commit is contained in:
BIN
resources/g2/font/interpunct-bold.png
Normal file
BIN
resources/g2/font/interpunct-bold.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 873 B |
BIN
resources/g2/font/interpunct-small.png
Normal file
BIN
resources/g2/font/interpunct-small.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 870 B |
BIN
resources/g2/font/interpunct-tiny.png
Normal file
BIN
resources/g2/font/interpunct-tiny.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 870 B |
@@ -740,6 +740,12 @@
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/interpunct-small.png",
|
||||
"y_offset": 3,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/ae-uc-bold.png",
|
||||
"y_offset": 0,
|
||||
@@ -1041,6 +1047,12 @@
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/interpunct-bold.png",
|
||||
"y_offset": 3,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/ae-uc-tiny.png",
|
||||
"y_offset": 0,
|
||||
@@ -1349,5 +1361,11 @@
|
||||
"y_offset": 1,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/interpunct-tiny.png",
|
||||
"y_offset": 2,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
}
|
||||
]
|
||||
|
||||
@@ -350,6 +350,9 @@ int32_t font_sprite_get_codepoint_offset(int32_t codepoint)
|
||||
case UNICODE_S_CEDILLA:
|
||||
return SPR_G2_S_CEDILLA_LOWER - SPR_CHAR_START;
|
||||
|
||||
case UNICODE_INTERPUNCT:
|
||||
return SPR_G2_INTERPUNCT - SPR_CHAR_START;
|
||||
|
||||
// This is to catch capitalised versions of the guilder sign
|
||||
case UNICODE_F_WITH_HOOK_UC:
|
||||
return 'F' - 32;
|
||||
@@ -523,6 +526,8 @@ bool font_supports_string_sprite(const utf8* text)
|
||||
case UNICODE_I_WITHOUT_DOT:
|
||||
case UNICODE_S_CEDILLA:
|
||||
|
||||
case UNICODE_INTERPUNCT:
|
||||
|
||||
supported = true;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -179,6 +179,11 @@ enum UnicodePolish
|
||||
UNICODE_Z_ACUTE = 378,
|
||||
};
|
||||
|
||||
enum UnicodeCatalan
|
||||
{
|
||||
UNICODE_INTERPUNCT = 183,
|
||||
};
|
||||
|
||||
enum UnicodeGerman
|
||||
{
|
||||
UNICODE_CAPITAL_SHARP_S = 0x1E9E,
|
||||
|
||||
@@ -905,7 +905,9 @@ enum
|
||||
SPR_G2_I_WITHOUT_DOT_LOWER = SPR_G2_CHAR_BEGIN + 55,
|
||||
SPR_G2_S_CEDILLA_LOWER = SPR_G2_CHAR_BEGIN + 56,
|
||||
|
||||
SPR_G2_CHAR_END = SPR_G2_S_CEDILLA_LOWER,
|
||||
SPR_G2_INTERPUNCT = SPR_G2_CHAR_BEGIN + 57,
|
||||
|
||||
SPR_G2_CHAR_END = SPR_G2_INTERPUNCT,
|
||||
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