From 37065810733c470b4a0866af24a19ab45f969cbc Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Sun, 14 Jul 2019 15:58:33 +0200 Subject: [PATCH] Add support for drawing en-dash and multiplication sign (#9570) --- src/openrct2/drawing/Font.cpp | 2 ++ src/openrct2/localisation/FormatCodes.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/openrct2/drawing/Font.cpp b/src/openrct2/drawing/Font.cpp index 513ceef15a..fe0aea55fd 100644 --- a/src/openrct2/drawing/Font.cpp +++ b/src/openrct2/drawing/Font.cpp @@ -160,6 +160,8 @@ static const std::unordered_map 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 }, diff --git a/src/openrct2/localisation/FormatCodes.h b/src/openrct2/localisation/FormatCodes.h index c4a4f39434..781d55cced 100644 --- a/src/openrct2/localisation/FormatCodes.h +++ b/src/openrct2/localisation/FormatCodes.h @@ -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;