mirror of https://github.com/OpenRCT2/OpenRCT2.git
Add ellipsis character
This commit is contained in:
parent
13c326eb50
commit
6d530002bc
Binary file not shown.
After Width: | Height: | Size: 168 B |
Binary file not shown.
After Width: | Height: | Size: 164 B |
Binary file not shown.
After Width: | Height: | Size: 164 B |
|
@ -764,6 +764,12 @@
|
|||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/ellipsis-small.png",
|
||||
"y_offset": 6,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/ae-uc-bold.png",
|
||||
"y_offset": 0,
|
||||
|
@ -1089,6 +1095,12 @@
|
|||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/ellipsis-bold.png",
|
||||
"y_offset": 6,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/ae-uc-tiny.png",
|
||||
"y_offset": 0,
|
||||
|
@ -1421,5 +1433,11 @@
|
|||
"y_offset": 0,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/ellipsis-tiny.png",
|
||||
"y_offset": 4,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
}
|
||||
]
|
||||
|
|
|
@ -352,6 +352,8 @@ int32_t font_sprite_get_codepoint_offset(int32_t codepoint)
|
|||
|
||||
case UNICODE_INTERPUNCT:
|
||||
return SPR_G2_INTERPUNCT - SPR_CHAR_START;
|
||||
case UNICODE_ELLIPSIS:
|
||||
return SPR_G2_ELLIPSIS - SPR_CHAR_START;
|
||||
|
||||
// Romanian
|
||||
case UNICODE_A_BREVE_UC:
|
||||
|
@ -543,6 +545,7 @@ bool font_supports_string_sprite(const utf8* text)
|
|||
case UNICODE_S_CEDILLA:
|
||||
|
||||
case UNICODE_INTERPUNCT:
|
||||
case UNICODE_ELLIPSIS:
|
||||
|
||||
case UNICODE_A_BREVE_UC:
|
||||
case UNICODE_A_BREVE:
|
||||
|
|
|
@ -304,4 +304,9 @@ enum UnicodeCurrency
|
|||
UNICODE_F_WITH_HOOK_UC = 401,
|
||||
};
|
||||
|
||||
enum UnicodePunctuation
|
||||
{
|
||||
UNICODE_ELLIPSIS = 8230,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -911,7 +911,9 @@ enum
|
|||
SPR_G2_T_COMMA_UPPER = SPR_G2_CHAR_BEGIN + 59,
|
||||
SPR_G2_T_COMMA_LOWER = SPR_G2_CHAR_BEGIN + 60,
|
||||
|
||||
SPR_G2_CHAR_END = SPR_G2_T_COMMA_LOWER,
|
||||
SPR_G2_ELLIPSIS = SPR_G2_CHAR_BEGIN + 61,
|
||||
|
||||
SPR_G2_CHAR_END = SPR_G2_ELLIPSIS,
|
||||
SPR_G2_GLYPH_COUNT = (SPR_G2_CHAR_END - SPR_G2_CHAR_BEGIN) + 1,
|
||||
|
||||
// 0x60000, chosen because it's a round hex number
|
||||
|
|
Loading…
Reference in New Issue