Current location: Hot Scripts Forums » General Community » Script Requests » font script


font script

Reply
  #1 (permalink)  
Old 09-08-03, 02:24 PM
seans9 seans9 is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
font script

i want to have a script to where a user can insert text in a text field and choose a font they want it to be in. not a normal font, like one that you would have to install. one that is not on their computer. make sense? is there something out there that does this? please let me know. thanks
Reply With Quote
  #2 (permalink)  
Old 09-09-03, 06:53 AM
!!! HotCGIScripts !!!'s Avatar
!!! HotCGIScripts !!! !!! HotCGIScripts !!! is offline
Guru Programmer
 
Join Date: Jun 2003
Location: USA
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
I think if user could preview font on his computer he should install it first and if you find way to install it using javascript or thomething like this user will no need to download it and install after preview. I think if you want to allow user to preview fonts you should show him image with text in this font. You could create some images for demo or make script that will create images from entered text. I think so.
Reply With Quote
  #3 (permalink)  
Old 09-09-03, 11:54 AM
clay@lazarusid.com clay@lazarusid.com is offline
Newbie Coder
 
Join Date: Aug 2003
Location: Flint, Michigan
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
seans9,

I don't know of any existing scripts to do this, but the FreeType library provides the tools. I believe that it's been incorporated into PHP. If it hasn't (or you don't have it in yours) you can use the GD libraries from boutell.com to access it from C. Since these libraries are also a default part of PHP, you can probably do it that way from PHP.
__________________
<a href="http://www.lazarusid.com/">www.lazarusid.com</a>

Custom script development
Reply With Quote
  #4 (permalink)  
Old 09-09-03, 12:31 PM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
I think what you are looking for is Net-Fu

Quote:
**** Net-Fu: Automatic Logo Generation ****

Have you ever been faced with the unhappy task of creating a web-page?

Unless you make your living cranking out HTML, you probably have about
a million other things you ought to be doing. Still, in this age of
sound bites and glitzy packaging, it's difficult to be noticed amid
the overwhelming clutter of the WWW without putting effort into the
appeal of your presentation. It is an unusual web-monkey, indeed, who
will browse content which lacks concessions to visual stimulation.

Net-Fu is a system which automagically generates eye-catching logos
which can lend your web page that special something that HTML header
directives lack. It removes the burden of artistic talent and frees
you to focus your concentration on what's really important: the
informative content of your page. You simply select a style of logo
from among such choices as "neon", "chrome", and "crystal", specify
parameters such as text string, typeface, size, and colors,
and Net-Fu returns your logo without further ado.

For a good, real-life example of Net-Fu in action in an application, check out http://www.cooltext.com/.
Net-Fu is part of the Gimp application

http://www.gimp.org/

Last edited by YourPHPPro; 09-09-03 at 12:37 PM.
Reply With Quote
  #5 (permalink)  
Old 09-09-03, 05:31 PM
seans9 seans9 is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
something like this:

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

know of a script that does that?

here is another example: http://www.fonthead.com/fonts-preview.php

Last edited by seans9; 09-09-03 at 05:43 PM.
Reply With Quote
  #6 (permalink)  
Old 09-09-03, 05:57 PM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
<?php
header("Content-type: image/jpeg");
$im = imagecreate(400,30);
$white = imagecolorallocate($im, 255,255,255);
$black = imagecolorallocate($im, 0,0,0);

// Replace path by your own font path
imagettftext($im, 20, 0, 10, 20, $black, "/path/arial.ttf",
"Testing... Omega: &amp;#937;");
imagejpeg($im);
imagedestroy($im);
?>
http://www.php.net/imageTTFtext
Reply With Quote
  #7 (permalink)  
Old 09-10-03, 12:08 PM
seans9 seans9 is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
hmmm. thats not working. is there anything else?
Reply With Quote
  #8 (permalink)  
Old 09-10-03, 12:15 PM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
What's not working ?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for a good review management script griz_fan Script Requests 10 07-29-07 05:08 AM
Do you know this script? amandad Script Requests 3 09-30-03 10:55 AM
Question of the Day script? ncasares PHP 4 08-26-03 07:58 PM
Talkback script..help pls BC_ PHP 0 06-22-03 06:44 PM
Need help with a script boardpix PHP 7 06-08-03 11:37 PM


All times are GMT -5. The time now is 11:45 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.