diff --git a/src/openrct2/drawing/Font.cpp b/src/openrct2/drawing/Font.cpp index ff17e55d71..4fbfb96089 100644 --- a/src/openrct2/drawing/Font.cpp +++ b/src/openrct2/drawing/Font.cpp @@ -146,6 +146,7 @@ static const std::map 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 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 }, diff --git a/src/openrct2/localisation/FormatCodes.h b/src/openrct2/localisation/FormatCodes.h index 680e791106..3b9f016d91 100644 --- a/src/openrct2/localisation/FormatCodes.h +++ b/src/openrct2/localisation/FormatCodes.h @@ -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;