mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
Add non-breaking spaces
This commit is contained in:
@@ -146,6 +146,7 @@ static const std::map<char32_t, int32_t> codepointOffsetMap = {
|
||||
{ UnicodeChar::cyrillic_io, 235 - CS_SPRITE_FONT_OFFSET }, // Looks just like ë
|
||||
|
||||
// Punctuation
|
||||
{ UnicodeChar::non_breaking_space, ' ' - CS_SPRITE_FONT_OFFSET },
|
||||
{ UnicodeChar::interpunct, SPR_G2_INTERPUNCT - SPR_CHAR_START },
|
||||
{ UnicodeChar::single_quote_open, '`' - CS_SPRITE_FONT_OFFSET },
|
||||
{ UnicodeChar::single_quote_end, '\'' - CS_SPRITE_FONT_OFFSET },
|
||||
@@ -153,6 +154,7 @@ static const std::map<char32_t, int32_t> codepointOffsetMap = {
|
||||
{ UnicodeChar::german_quote_open, SPR_G2_GERMAN_OPENQUOTES - SPR_CHAR_START },
|
||||
{ UnicodeChar::bullet, CSChar::bullet - CS_SPRITE_FONT_OFFSET },
|
||||
{ UnicodeChar::ellipsis, SPR_G2_ELLIPSIS - SPR_CHAR_START },
|
||||
{ UnicodeChar::narrow_non_breaking_space, ' ' - CS_SPRITE_FONT_OFFSET },
|
||||
{ UnicodeChar::quote_open, CSChar::quote_open - CS_SPRITE_FONT_OFFSET },
|
||||
{ UnicodeChar::quote_close, CSChar::quote_close - CS_SPRITE_FONT_OFFSET },
|
||||
|
||||
|
||||
@@ -274,6 +274,7 @@ namespace UnicodeChar
|
||||
constexpr char32_t cyrillic_io = 0x451;
|
||||
|
||||
// Punctuation
|
||||
constexpr char32_t non_breaking_space = 0xA0;
|
||||
constexpr char32_t leftguillemet = 0xAB;
|
||||
constexpr char32_t rightguillemet = 0xBB;
|
||||
constexpr char32_t interpunct = 0x49F;
|
||||
@@ -283,6 +284,7 @@ namespace UnicodeChar
|
||||
constexpr char32_t german_quote_open = 0x201E;
|
||||
constexpr char32_t bullet = 0x2022;
|
||||
constexpr char32_t ellipsis = 0x2026;
|
||||
constexpr char32_t narrow_non_breaking_space = 0x202F;
|
||||
constexpr char32_t quote_open = 0x201C;
|
||||
constexpr char32_t quote_close = 0x201D;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user