Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support StrokeWidth on text #34

Open
m1dst opened this issue May 20, 2021 · 2 comments
Open

Support StrokeWidth on text #34

m1dst opened this issue May 20, 2021 · 2 comments

Comments

@m1dst
Copy link

m1dst commented May 20, 2021

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
Copy link
Owner

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants