Is it possible the saved text with different styles and colors in the image?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You may want to rephrase your question a bit. But if I understand you correctly, you want to know whether it is possible to render differently styled text using GD in one image.
This is possible by separating the text into multiple
ImageFTText()commands with different fonts and colours.It gets tricky, though, if you want one word to have different stylings, because then things like Kerning (the correct spacing between character pairs) comes into play. You would have to use
ImageFTBBox()to measure the size of each character (or text) to know where to continue with the next one – and even that is not guaranteed to look pretty.