diff --git a/mod-structure/Textures/Consolas.png b/mod-structure/Textures/Consolas.png index 7f8194a..6f6eb2b 100644 Binary files a/mod-structure/Textures/Consolas.png and b/mod-structure/Textures/Consolas.png differ diff --git a/src/LabelsOnFloor/FontHandler.cs b/src/LabelsOnFloor/FontHandler.cs index b23c976..686b693 100644 --- a/src/LabelsOnFloor/FontHandler.cs +++ b/src/LabelsOnFloor/FontHandler.cs @@ -65,6 +65,7 @@ private CharBoundsInTexture GetCharBoundsInTextureFor(char c) private int GetIndexInFontForChar(char c) { var asciiVal = (int) c; + var cyrillicModifier = 1039; if (asciiVal < 33) return 0; @@ -74,6 +75,15 @@ private int GetIndexInFontForChar(char c) if (asciiVal < 127) return asciiVal - 58; + if (asciiVal == 1025) //For letter "Ё" as an exception + return 75; + + if (asciiVal < 1046 && asciiVal > 1039) //Before "Ё" + return asciiVal - cyrillicModifier + 68; + + if (asciiVal < 1072 && asciiVal > 1045) //After "Ё" + return asciiVal - cyrillicModifier + 68 + 1; + return 0; } } diff --git a/src/LabelsOnFloor/Properties/AssemblyInfo.cs b/src/LabelsOnFloor/Properties/AssemblyInfo.cs index e6c8671..2d9eeaf 100644 --- a/src/LabelsOnFloor/Properties/AssemblyInfo.cs +++ b/src/LabelsOnFloor/Properties/AssemblyInfo.cs @@ -31,8 +31,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.5.10.0")] -[assembly: AssemblyFileVersion("1.5.10.0")] +[assembly: AssemblyVersion("1.5.11.0")] +[assembly: AssemblyFileVersion("1.5.11.0")]