mirror of
https://github.com/stride3d/stride.git
synced 2026-10-12 02:23:23 +00:00
The C# importer hand-computed msdfgen's scale/translate across three coordinate systems and got the glyph bounds wrong, producing flat single-distance bitmaps (garbage SDF). Move the framing into the wrapper: msdfgenGenerateGlyph frames the glyph from shape.getBounds() and returns the bitmap, pixel offsets and advance, so the importer does no coordinate math. Rebuild stride_msdfgen for the new entry point (msdfgen v1.12, FreeType VER-2-13-3). Tests: TestSignedDistanceFieldFont asserts glyph metrics; TestStaticSpriteFont gains an SDF rendering frame exercising the importer + SDF shader end to end.