toptensoftware / RichTextKit

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

Support StrokeWidth on text #34

Open m1dst opened 3 years ago

m1dst commented 3 years ago

Historically (before I transitioned to this library) I would draw text twice. Once with a dark coloured text and a stroke. Then again with another colour over the top to give a high contrast to the text.

It would be great to be able to reproduce this effect. At the moment I'm having to set a background colour instead which is not quite as nice to look at.

image

Would you consider adding this feature or advise me how to achieve it if I have missed it in the docs.

Thanks

toptensoftware commented 3 years ago

RichTextKit doesn't support this out of the box. I'm open to adding it but busy on other projects at the moment so can't guarantee it. If you'd like to have a go at adding it yourself I'm happy to consider a pull request. If this doesn't affect the layout part of RichTextKind (not sure) the render part of RichTextKit is pretty simple so it shouldn't be too hard.

charlenni commented 2 years ago

@m1dst Perhaps #44 is what you are looking for?