Skip to content

Multiple colors in text #5134

Locked Answered by hugovk
JohnnyJTH asked this question in Q&A
Dec 25, 2020 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

You can draw some characters in one colour, and use textsize to 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

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@nulano
Comment options

@JohnnyJTH
Comment options

Answer selected by radarhere
Comment options

You must be logged in to vote
3 replies
@JohnnyJTH
Comment options

@JohnnyJTH
Comment options

@radarhere
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants