Jump to content

Creating an image from text, with text formatting.


mitel

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.