mitel Posted November 26, 2008 Share Posted November 26, 2008 Hi all, I am retrieving text from a MySQL database and displaying it on screen in a formatted way, i.e. fonts, font-size, line breaks etc. No images just text. I want to turn this text into an image to counter 'copy and paste' from the browser and also avoid text in page source code. I can create an image with the text from the database using the total characters in the database record, characters per line and number of line breaks to set the image dimensions but the text only appears on one line in the image and obviously I only get the first X amount of charaters. I can use TTF fonts ok but am stuck on how to format the text so that it appears fully within the image with the line breaks etc. Any help please? Mitel Link to comment https://forums.phpfreaks.com/topic/134412-creating-an-image-from-text-with-text-formatting/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.