mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Support drawing em-dashes
These are used in the French translation.
This commit is contained in:
committed by
GitHub
parent
6a44b7cc5d
commit
3bb15d9067
@@ -177,6 +177,7 @@ static const std::unordered_map<char32_t, int32_t> codepointOffsetMap = {
|
||||
{ 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::em_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 },
|
||||
|
||||
@@ -282,6 +282,7 @@ namespace UnicodeChar
|
||||
constexpr char32_t interpunct = 0xB7;
|
||||
constexpr char32_t multiplication_sign = 0xD7;
|
||||
constexpr char32_t en_dash = 0x2013;
|
||||
constexpr char32_t em_dash = 0x2014;
|
||||
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