From 3bb15d9067e1bbb52a29a73291875a67ccc694b8 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Tue, 20 Jul 2021 13:34:22 +0200 Subject: [PATCH] Support drawing em-dashes These are used in the French translation. --- src/openrct2/drawing/Font.cpp | 1 + src/openrct2/localisation/FormatCodes.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/openrct2/drawing/Font.cpp b/src/openrct2/drawing/Font.cpp index 686a479c0e..24573ecf09 100644 --- a/src/openrct2/drawing/Font.cpp +++ b/src/openrct2/drawing/Font.cpp @@ -177,6 +177,7 @@ static const std::unordered_map 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 }, diff --git a/src/openrct2/localisation/FormatCodes.h b/src/openrct2/localisation/FormatCodes.h index 760f61ab36..9e70f682bd 100644 --- a/src/openrct2/localisation/FormatCodes.h +++ b/src/openrct2/localisation/FormatCodes.h @@ -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;