Server-side Font File

liunx

Guest
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?Do you have Flash? If you do, go here (<!-- m --><a class="postlink" href="http://mikeindustries.com/sifr">http://mikeindustries.com/sifr</a><!-- m -->).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.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? :(Yep :) <!-- m --><a class="postlink" href="http://www.alistapart.com/articles/dynatext/Hmm..">http://www.alistapart.com/articles/dynatext/Hmm..</a><!-- m -->. Well, these are all workarounds to do something that I thought was simple :(
Hey, BigMoosie, thanks for the document.getElementsBySelector function, btw :)
<!-- m --><a class="postlink" href="http://simon.incutio.com/archive/2003/03/25/getElementsBySelectorThere">http://simon.incutio.com/archive/2003/0 ... ectorThere</a><!-- m --> is a simple CSS option for handling server side fonts. Maybe the version 9 browsers will actually support it.Are you speaking outta your bottom or are you serious?
You got a source, maybe?
How would such code look like in the future?Hey, BigMoosie, thanks for the document.getElementsBySelector function, btw :)
<!-- m --><a class="postlink" href="http://simon.incutio.com/archive/2003/03/25/getElementsBySelector">http://simon.incutio.com/archive/2003/0 ... BySelector</a><!-- m -->

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.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.
 
Back
Top