Click to See Complete Forum and Search --> : Embedding Fonts


LocalHero
07-01-2005, 01:46 PM
Here is my idea...
I want to have a bunch of fonts (500) in a file. Then I want to make a page where the user can select the font, what text they want, font size, and font color. When they submit their selection it opens a page with their font selections.

The page would read:
<head>
<?php
$font=$_POST['font'];
?>
<head>
<body>
<FONT FACE="<?php echo($font);?>">Text goes here.</FONT>

My problem is that I tried to use Microsoft WETF to do this, but it wants to see each font called out before it creates the .otf file. Does anyone have a better way to make 500 .otf files? Or a better way to do what I'm looking for?

gameguy43
07-01-2005, 04:53 PM
html is interpreted on the clientside by the page visitor's browser. In short, it doesn't matter how many fonts you have on your server, the people visiting your site will see the text in their browser's default font (usually arial?) unless they have those fonts installed too.

felgall
07-01-2005, 05:20 PM
The CSS2 standards provide a way to embed fonts into web pages. Any version 9 (or maybe 10) browser should support it. Earlier browser versions - you are out of luck.

ShrineDesigns
07-01-2005, 05:27 PM
that is incorrect, it was in CSS 1.0 that the @font rule was introduced and as far as i know not one browser supports it

after 1.0 it was removed from the css specification

EDIT
you can use the gd library to make an image with a given font, if php was compiled with tlibb or freetype x.x

LocalHero
07-01-2005, 07:33 PM
From what I have been reading, http://www.fluttrbydesigns.com/OE5Stationery/WEFT/LearningToWEFTforOE5.html - You can embed fonts onto pages with a Web Embedding Font Tool from Microsoft. It takes a bit of css work, but it will display any font on my server once it is converted to .otf. I just wanted to know if anyone had used that before, or had a better way to allow the user to select from my fonts.

felgall
07-03-2005, 04:47 PM
That font embedding tool is very buggy and only works with some versions of IE and not with any other browser.