From 3ae10505f4e6d804599aa4e751420915d68df3b8 Mon Sep 17 00:00:00 2001 From: lalien Date: Wed, 27 Aug 2008 21:45:39 +0000 Subject: [PATCH] Fixes for new fonts git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2318 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Standard Gaming Platform/Font.cpp | 61 +++++++++++++++++++++++++++++-- 1 file changed, 57 insertions(+), 4 deletions(-) diff --git a/Standard Gaming Platform/Font.cpp b/Standard Gaming Platform/Font.cpp index b4594680..4af6aab9 100644 --- a/Standard Gaming Platform/Font.cpp +++ b/Standard Gaming Platform/Font.cpp @@ -1643,11 +1643,9 @@ FontTranslationTable *CreateEnglishTransTable( ) temp++; *temp = 255; // þ temp++; - *temp = 256; // ÿ - temp++; - - // START OF FUNKY RUSSIAN STUFF + *temp = 1040; //À + temp++; *temp = 1041; temp++; *temp = 1042; @@ -1775,6 +1773,61 @@ FontTranslationTable *CreateEnglishTransTable( ) *temp = 1103; // ö temp++; + //SB: new russian & bellorussian & ukrainian symbols + // in ascii + *temp = 185; // ¹ + temp++; + *temp = 168; // ¨ + temp++; + *temp = 178; // ² + temp++; + *temp = 161; // ¡ + temp++; + *temp = 184; // ¸ + temp++; + *temp = 179; // ³ + temp++; + *temp = 162; // ¢ + temp++; + *temp = 165; // ¥ + temp++; + *temp = 170; // ª + temp++; + *temp = 175; // ¯ + temp++; + *temp = 180; // ´ + temp++; + *temp = 186; // º + temp++; + *temp = 191; // ¿ + temp++; + // in unicode + *temp = 0x2116; // ¹ + temp++; + *temp = 0x0401; // ¨ + temp++; + *temp = 0x0406; // ² + temp++; + *temp = 0x040E; // ¡ + temp++; + *temp = 0x0451; // ¸ + temp++; + *temp = 0x0456; // ³ + temp++; + *temp = 0x045E; // ¢ + temp++; + *temp = 0x0490; // ¥ + temp++; + *temp = 0x0404; // ª + temp++; + *temp = 0x0407; // ¯ + temp++; + *temp = 0x0491; // ´ + temp++; + *temp = 0x0454; // º + temp++; + *temp = 0x0457; // ¿ + temp++; #else // Windows Code Page 1252 Western Standard Character Set