Extend CSharpMath to new platforms
masterThere are three primary ways to extend the library to new graphics or font platforms:
- Branching off
CSharpMath.Rendering(Recommended): Implement theICanvasinterface to connect the library's font lookup (via Typography) to your specific graphics library. Pass this implementation intoMathPainter.Draw. - Forking the project: The highest effort path. Requires defining a custom
TypesettingContextand implementingIGraphicsContextto allow for completely custom font and graphics libraries. - Building on
CSharpMath.SkiaSharp: For other SkiaSharp-supported platforms, pass theSKCanvasfrom your platform's paint override intoMathPainter.Draw.