Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.