From a9ff31fe2e643c7d25b4ddf004349f8050f21130 Mon Sep 17 00:00:00 2001 From: Nemrtvi <26684396+Nemrtvi@users.noreply.github.com> Date: Thu, 9 May 2019 07:41:30 +0200 Subject: [PATCH] Greek Sigma character fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The lowercase Sigma letter in Greek has two different forms (σ and ς), which changes depending on its placement in a word, but in uppercase and smallcaps contexts, it only has one look regardless of word positioning. If the character ς is missing, it should fall back to σ. --- src/gamedata/fonts/v_font.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gamedata/fonts/v_font.cpp b/src/gamedata/fonts/v_font.cpp index 3add6e9fa5..9328c0b4bb 100644 --- a/src/gamedata/fonts/v_font.cpp +++ b/src/gamedata/fonts/v_font.cpp @@ -869,6 +869,9 @@ int stripaccent(int code) case 0x201e: return '"'; // typographic quotation marks + case 0x3c2: + return 0x3c3; // Lowercase Sigma character in Greek, which changes depending on its positioning in a word; if the font is uppercase only or features a smallcaps style, the second variant of the letter will remain unused + // Cyrillic characters with equivalents in the Latin alphabet. case 0x400: return 0xc8;