
09-08-03, 02:24 PM
|
|
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
|

09-09-03, 06:53 AM
|
 |
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.
|

09-09-03, 11:54 AM
|
|
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
|

09-09-03, 12:31 PM
|
 |
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.
|

09-09-03, 05:31 PM
|
|
Newbie Coder
|
|
Join Date: Sep 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Last edited by seans9; 09-09-03 at 05:43 PM.
|

09-09-03, 05:57 PM
|
 |
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: &#937;");
imagejpeg($im);
imagedestroy($im);
?>
|
http://www.php.net/imageTTFtext
|

09-10-03, 12:08 PM
|
|
Newbie Coder
|
|
Join Date: Sep 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hmmm. thats not working. is there anything else?
|

09-10-03, 12:15 PM
|
 |
Community VIP
|
|
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|