Introduce SkiaTextRenderer

SkiaTextRenderer is a text renderer that simulate the System.Windows.Forms.TextRenderer.

Its goal is to provider a cross-platform TextRenderer that can be easly used in game or app.

The APIs are just like the Winform version. Even TextFormatFlags was directly copied and used. Most of the flags are implemented for now, left flags could be implemented later.

Extra textbox related features outside the Winform TextRenderer:

  • Draw cursor and get cursor draw position by cursor index
  • Draw selection background by selection start and end.

See examples and more in:

1 Like

Release v1.2.0

  • Switch to zero-based cursor index
  • rework on selection drawn with simpler approach

Release v1.2.1

  • Fixd TextRenderer.GetCursorDrawPosition after applying zero-base cursor index