From f708d0711d833bcc5d8edaf419096effc48341d5 Mon Sep 17 00:00:00 2001 From: Yesanith <56350783+Yesanith@users.noreply.github.com> Date: Fri, 21 Aug 2026 10:48:17 +0300 Subject: [PATCH] Expand font glyph coverage for Latin scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace hardcoded French/Romanian glyph additions with a full Latin Extended-A range import (U+0100–U+017F), then explicitly add Romanian comma-below letters (ȘșȚț) from Latin Extended-B. This broadens support for commonly typed accented characters like Turkish, Polish, Czech, Hungarian, and Baltic letters. --- ChatTwo/FontManager.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ChatTwo/FontManager.cs b/ChatTwo/FontManager.cs index 00515dc2..98580522 100644 --- a/ChatTwo/FontManager.cs +++ b/ChatTwo/FontManager.cs @@ -76,11 +76,16 @@ ushort[] BuildRange(IReadOnlyList? chars, params nint[] ranges) builder.AddChar(c.Char); // various symbols - // French - // Romanian // builder.AddText("←→↑↓《》■※☀★★☆♥♡ヅツッシ☀☁☂℃℉°♀♂♠♣♦♣♧®©™€$£♯♭♪✓√◎◆◇♦■□〇●△▽▼▲‹›≤≥<«“”─\~"); - builder.AddText("Œœ"); - builder.AddText("ĂăÂâÎîȘșȚț"); + + // "Latin Extended-A" https://www.compart.com/en/unicode/block/U+0100 + // Covers the accented letters the game font lacks but people still type: + // Turkish (ĞğİıŞş), French (Œœ), Polish, Czech, Hungarian, Baltic, ... + for (var i = 0x0100; i <= 0x017F; i++) + builder.AddChar((char) i); + + // Romanian comma-below variants, which live in "Latin Extended-B" + builder.AddText("ȘșȚț"); // "Enclosed Alphanumerics" (partial) https://www.compart.com/en/unicode/block/U+2460 for (var i = 0x2460; i <= 0x24B5; i++)