Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified mod-structure/Textures/Consolas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/LabelsOnFloor/FontHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/LabelsOnFloor/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]



Expand Down