Repository navigation
|
I don't know how, but I really want multiple colors in one text box. I don't think it's possible but I want to hear opinions. And if not, how I could do it myself. |
Answered by
hugovk
Dec 25, 2020
Replies: 2 comments 5 replies
|
You can draw some characters in one colour, and use https://pillow.readthedocs.io/en/stable/reference/ImageFont.html |
2 replies
Answer selected by
radarhere
|
@JohnnyJTH if you happy with this, could you mark this as answered? |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

You can draw some characters in one colour, and use
textsizeto find out how wide that part was, and draw the next part in another colour with that width offset.https://pillow.readthedocs.io/en/stable/reference/ImageFont.html