TexasMd91 Posted October 19, 2009 Share Posted October 19, 2009 I am trying to make an image that shows a random quote from my database. However I want the quote to do 2 things. 1. It needs to word wrap so that it stays on the image 2. It needs to be the biggest font which still makes it fit vertically. So I need to know how to word-wrap in GD and how to vertically check the size of that word-wrapped text. Everything else I can figure out but I can't seem to find the right functions to achieve those Quote Link to comment https://forums.phpfreaks.com/topic/178169-solved-question-about-gd-library/ Share on other sites More sharing options...
Alex Posted October 19, 2009 Share Posted October 19, 2009 I'm pretty sure that there aren't any built in functions for either of that; however, you can do that manually yourself using imagefontwidth() and imagefontheight() Quote Link to comment https://forums.phpfreaks.com/topic/178169-solved-question-about-gd-library/#findComment-939437 Share on other sites More sharing options...
TexasMd91 Posted October 19, 2009 Author Share Posted October 19, 2009 alright thanks I guess, once I figure it out I will post both functions here. Quote Link to comment https://forums.phpfreaks.com/topic/178169-solved-question-about-gd-library/#findComment-939439 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.