View Full Version : embedded fonts without WEFT?
webwalker
04-18-2003, 01:18 AM
Anyone know a way to embed a truetype font into a webpage without using WEFT3? I have a special font (Quicksilver) I'd like to use for several words on a page without having to create a .jpg image for each word. Heard I can use the WEFT3 tool to create an embedded font, but it sounds rather complicated. Is there an easier way? The finished html page will need to be both IE and Netscape compliant.
I dont really know about netscape, but Ive done this in my browser b4, just load the TTF font onto your webserver and just do this for the font tag:
<font face="http://*yoursite*/*yourfont*">whatever</font>I think should work.
joh6nn
04-18-2003, 04:40 AM
can't be done crossbrowser. also, you're right, weft is complicated, and it has a nasty habit of completely destroying your pages; i highly recommend that you don't have anything to do with it.
beetle
04-18-2003, 05:09 AM
WEFT == crap
What l3vi suggest works for him becuase he has the font the page uses. It being on the server is irrelevant
Better make some .jpgs (or gifs or pngs)
webwalker
04-18-2003, 05:32 AM
Thanks, but I'm apparently doing *something* wrong... it doesn't work. I uploaded the ttf file to the same directory as the html file, and here's the code I put in the html file... can you tell me what I've done wrong?
<font face="http://www.buckeyeazrealestate.com/papyrus.ttf" size="2" color="fuchsia"><b>Watch the SlideShow, then scroll down for more details and maps.</b></font>
PS I tried taking out the extension .ttf and even tried designating the directory on the server (http://www.buckeyeazrealestate.com/www/papyrus) but still no go.... and I am using IE6 so it's not that it's an old browser. I'll be truly grateful for any ideas you might have. Thanks again!
beetle
04-18-2003, 05:52 AM
Uhh, you're not doing anything wrong other than the fact that you just can't plain do that.
Fonts are completely controlled by the client machine. The only way for that to not be the case is to use something like WEFT (which we've already discussed).
The face property of the <font> tag, as well as any other typeface receiving property/style rule in HTML or CSS must be given the typeface name, or a family of names -- NOT the URI of a font-file on the server.
Sorry, I though I made it clear earlier. Excluding WEFT, you have no other choice than to make images of your rendered text.
webwalker
04-18-2003, 06:08 AM
Well, Beetle, I guess I'm just WEFT out in the cold....
I had *hoped* there was another/better solution out there, but I guess not. So I'll go back to my PaintShopPro images. Thanks for the education, guys!
beetle
04-18-2003, 06:15 AM
Hehe, nice pun.
Ya, it's too bad there's nothing better.
Maybe I should tell the Mozilla guys to look into it. :D
dysfunctionGazz
04-18-2003, 02:15 PM
depending on how big the font is (file size) u could put a splash page saying 'flash required, 1024x768, please click here to download following font for optimal viewing' ive seen that before.
but would it not be better to use graphics? because then u can use anti-aliasing in ur graphics package to make the edges smooth, better than the often jagged pixelated edge of some fonts (IE impact). this looks far better for headings etc.
webwalker
04-18-2003, 04:33 PM
DysfunctionGazz, Thanks for the suggestion, but a splash page would not be appropriate for this client. So as you said, it will be better just to stick to using graphic images. I was just hoping things had evolved so I wouldn't have to spend so much time creating such textual images. Yeah, I know they look better but I thought that if there's a way to save some effort (not to mention the size of the page) it might be worth it. It would have been great if l3vi's suggestion had worked...*sigh*
beetle
04-18-2003, 05:36 PM
You could some something serverside like PHP to do a text-to-image sorta thing.
webwalker
04-21-2003, 06:23 PM
Thanks, beetle, interesting idea. I might try it later but for this client I guess I'll just stick to graphically rendered text. You got the brain cells churning, though!
Antoniohawk
04-23-2003, 03:44 AM
If you do decide to use WEFT look here (http://www.spoono.com/tutorials/html/embeddingfonts/).
webwalker
04-23-2003, 03:56 AM
Thanks, Antoniohawk. I appreciate the tutorial. Found a couple of other tutorials also, and have been WEFTing for some of my sites, as well as continuing with textual graphics for others. But I will still laud the day someone comes up with a way to make it simpler!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.