RichTextKit icon indicating copy to clipboard operation
RichTextKit copied to clipboard

Support StrokeWidth on text

Open m1dst opened this issue 4 years ago • 2 comments

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

m1dst avatar May 20 '21 15:05 m1dst

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.

toptensoftware avatar May 21 '21 01:05 toptensoftware

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

charlenni avatar Jan 06 '22 16:01 charlenni