mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 09:14:58 +01:00
Add support for drawing en-dash and multiplication sign (#9570)
This commit is contained in:
committed by
GitHub
parent
aff3e42408
commit
3706581073
@@ -160,6 +160,8 @@ static const std::unordered_map<char32_t, int32_t> codepointOffsetMap = {
|
||||
// Punctuation
|
||||
{ UnicodeChar::non_breaking_space, ' ' - CS_SPRITE_FONT_OFFSET },
|
||||
{ UnicodeChar::interpunct, SPR_G2_INTERPUNCT - SPR_CHAR_START },
|
||||
{ UnicodeChar::multiplication_sign, CSChar::cross - CS_SPRITE_FONT_OFFSET },
|
||||
{ UnicodeChar::en_dash, '-' - CS_SPRITE_FONT_OFFSET },
|
||||
{ UnicodeChar::single_quote_open, '`' - CS_SPRITE_FONT_OFFSET },
|
||||
{ UnicodeChar::single_quote_end, '\'' - CS_SPRITE_FONT_OFFSET },
|
||||
{ UnicodeChar::single_german_quote_open, ',' - CS_SPRITE_FONT_OFFSET },
|
||||
|
||||
@@ -278,6 +278,8 @@ namespace UnicodeChar
|
||||
constexpr char32_t leftguillemet = 0xAB;
|
||||
constexpr char32_t rightguillemet = 0xBB;
|
||||
constexpr char32_t interpunct = 0xB7;
|
||||
constexpr char32_t multiplication_sign = 0xD7;
|
||||
constexpr char32_t en_dash = 0x2013;
|
||||
constexpr char32_t single_quote_open = 0x2018;
|
||||
constexpr char32_t single_quote_end = 0x2019;
|
||||
constexpr char32_t single_german_quote_open = 0x201A;
|
||||
|
||||
Reference in New Issue
Block a user