Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - zephyr

Pages: [1]
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);
        }
    }

Pages: [1]