Jump to content

Custom font using PHP


imisspla07

Recommended Posts

I have been scouring the web for a way to allow a user to write something in a box, pick a font, and show what was written in that specific font. It seems that php is the way to do it, but I can't seem to figure it out. I know javascript and html ok, but know nothing about php and was wondering if anyone could help me without me having to go to B&N and buy an $80, 600 page book on php. Here's a site that does what I'm attempting to do.

http://www.1001fonts.com/font_details.html?font_id=3101

My wife makes handmade gifts and monograms them and I wanted people to be able to see what they want monogrammed in the font they choose.

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/159154-custom-font-using-php/
Share on other sites

It would be a tad bit more complicated that that, since not all font's are embedable, so you would have to result to using GD with php to generate an image with the specified word...its how the site you specified works....

 

You would use a process very similar to creating a captcha...

 

check this tutorial out to start...

http://www.phpfreaks.com/tutorial/php-add-text-to-image

 

also using functions like this..

http://us.php.net/manual/en/function.imagefttext.php

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.