Support drawing em-dashes

These are used in the French translation.
This commit is contained in:
Michael Steenbeek authored and GitHub committed 2021-07-20 13:34:22 +02:00
1 parent 6a44b7cc5d
commit 3bb15d9067
2 files changed
+2

No files matched your search

+1
View File
@@ -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 },
+1
View File
@@ -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;