1
DotNet / Re: SFML.Net 2.2 bug: Glyph.Advance too big
« on: November 14, 2015, 07:58:39 am »
Binaries for SFML 2.3 C# bindings haven't landed yet; I used this hack without recompile.
public static class GlyphPatcher
{
public static float GetGlyphAdvancePatch(this Glyph glyph)
{
var bytes = BitConverter.GetBytes(glyph.Advance);
return BitConverter.ToSingle(bytes, 0);
}
}
public static class GlyphPatcher
{
public static float GetGlyphAdvancePatch(this Glyph glyph)
{
var bytes = BitConverter.GetBytes(glyph.Advance);
return BitConverter.ToSingle(bytes, 0);
}
}