Sagar Patel
Sagar Patel

Reputation: 71

Add Text inside Rectangle using Skia Sharp with wrap lines

I want to draw Text inside skia Rectangle. If text is large then it should be draw in next line And want to create method in which i will pass text color, font size , font name ,X & Y coordinates for rectangle already rendered.

So text should be inside Rectangle also text should be in specific aligned (Left,Center, Right) specified in method parameter

enter image description here

Upvotes: 2

Views: 3441

Answers (1)

Matthew
Matthew

Reputation: 5222

Unfortunately, as of this message, SkiaSharp does not have a really good story when it comes to drawing text. It has all the required bits to draw even the most advanced cases, but exposes them in a really advanced (basically useless for the common man) way.

Until we can get a decent story with all the toys, I would strongly suggest having a look at this library which does more than you can possibly imagine: https://github.com/toptensoftware/RichTextKit

RichTextKit

Upvotes: 2

Related Questions