Skip to content

Commit c8fe596

Browse files
committed
Add some remaining missing bitmap substitutions
1 parent c50d819 commit c8fe596

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

components/fontloader/fontloader.cpp

+7-2
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ namespace Gui
500500
// £ (Pound Sign, 0xA3) is available but its glyph looks like œ (small oe ligature)
501501
omitted.push_back(0x00A4); // ¤ (Currency Sign)
502502
// ¥ (Yen Sign, 0xA5) is unavailable, not replaced
503-
// ¦ (Broken Bar, 0xA6) is unavailable, not replaced
503+
additional.emplace(221, 0x00A6); // ¦ (Broken Bar, 0xA6) => ▌
504504
omitted.push_back(0x00A7); // § (Section Sign)
505505
additional.emplace(34, 0x00A8); // ¨ (Diaeresis) => " (double quote mark)
506506
additional.emplace(99, 0x00A9); // © (Copyright Sign) => c (latin small C)
@@ -556,7 +556,12 @@ namespace Gui
556556
additional.emplace(85, 0x00DB); // Û (Latin Capital Letter U with Circumflex) => U (latin capital U)
557557
// Ü (Latin Capital Letter U with Diaeresis, 0xDC) is available
558558
additional.emplace(89, 0x00DD); // Ý (Latin Capital Letter Y with Acute) => Y (latin capital Y)
559-
// 0xDE to 0xFF are not replaced
559+
// 0xDE to 0xFF are generally not replaced with certain exceptions
560+
additional.emplace(97, 0x00E3); // ã (Latin Small Letter A with Tilde) => a (latin small A)
561+
additional.emplace(100, 0x00F0); // ð (Latin Small Letter Eth) => d (latin small D)
562+
additional.emplace(111, 0x00F5); // õ (Latin Small Letter O with Tilde) => o (latin small O)
563+
additional.emplace(111, 0x00F8); // ø (Latin Small Letter O with Stroke) => o (latin small O)
564+
additional.emplace(121, 0x00FD); // ý (Latin Small Letter Y with Acute) => y (latin small Y)
560565

561566
// Russian Morrowind which uses Win-1251 encoding only does equivalent (often garbage) Win-1252 replacements
562567
// However, we'll provide custom replacements for Cyrillic io letters

0 commit comments

Comments
 (0)