toptensoftware / RichTextKit

Rich text rendering for SkiaSharp
Other
367 stars 73 forks source link

TextBlock and Halo #42

Open charlenni opened 2 years ago

charlenni commented 2 years ago

Is there an easy way to create a halo for a given TextBlock? Perhaps by getting the SKPath for the drawn characters and then use SKPaint.GetFillPath()? Or draw TextBlock twice?

toptensoftware commented 2 years ago

There's nothing built in for this, but adding support for converting a TextBlock to a text path is an interesting idea.

Unfortunately I don't see a SkiaSharp GetTextPath() method that takes a SKTextBlob (which is what RichTextKit uses internally for rendering text).