Click to See Complete Forum and Search --> : Server-side Font File


Ultimater
05-24-2005, 10:52 PM
My situation is that one of my webpages uses a very uncommon font and therefore most users will not display my webpage correctly because they lack the font.

I was wondering if it would be possible for my server to provide the font and have my webpage use the font file off of the server and have my webpage display correctly w/o the user having to download the font.

Also, as an additional question, would it be possible for the browser to "see" if the font isn't on the user's computer and trigger a sub routine?
I know that you can use font combinations like: Script MT Bold, Arial
but can the brower detect if the first font is absent?

Sanim
05-24-2005, 11:06 PM
Do you have Flash? If you do, go here (http://mikeindustries.com/sifr).

BigMoosie
05-25-2005, 12:08 AM
If it is just for headings then it is wisest to use images... but you should always provide an alternative so that people who dont render CSS still see the text:

<H1 style="background-image: url(my.gif);width:200px;height:50px;">
<SPAN style="display:none">Heading Text</SPAN>
</H1>
If your site has hundreds of instances of these headings you can always upload the font to the server and generate the images automatically when requested.

I suggest you dont use flash.

Ultimater
05-25-2005, 02:53 AM
If your site has hundreds of instances of these headings you can always upload the font to the server and generate the images automatically when requested.

I suggest you dont use flash.
How would I do that!? You aren't thinking about using PHP to take a query_string and echo-back an image using the given text as it appears in the given font and size, are you? :(

BigMoosie
05-25-2005, 03:18 AM
Yep :) http://www.alistapart.com/articles/dynatext/

Ultimater
05-25-2005, 01:42 PM
Hmm... Well, these are all workarounds to do something that I thought was simple :(
Hey, BigMoosie, thanks for the document.getElementsBySelector function, btw :)
http://simon.incutio.com/archive/2003/03/25/getElementsBySelector

felgall
05-25-2005, 05:32 PM
There is a simple CSS option for handling server side fonts. Maybe the version 9 browsers will actually support it.

Ultimater
05-25-2005, 05:53 PM
Are you speaking outta your bottom or are you serious?
You got a source, maybe?
How would such code look like in the future?

BigMoosie
05-25-2005, 08:47 PM
Hey, BigMoosie, thanks for the document.getElementsBySelector function, btw :)
http://simon.incutio.com/archive/2003/03/25/getElementsBySelector

Well thankyou :confused: I really am glad you like it... I dont see how you think that relates to me but I'm not one to reject compliments.

bokeh
05-25-2005, 08:54 PM
Can you use php? There is a script which converts text into images dynamically as long as you have the .ttf file on the server.