Jump to content

Archived

This topic is now archived and is closed to further replies.

onlyican

Using Unique Font

Recommended Posts

Hey
Mods: Sorry, not sure where to post this, I live in here, Move if u like (I know u will anyway)

I have a font, which is not a "Standard" font

I have been told I can use this on my website, by uploading it to the server

Is this true?

Is so, how do I go about doing this, and linking to that font, so I can use it.

Many thanks

Share this post


Link to post
Share on other sites
Yes yiou can use a technique called WEFT. Search for it in google.

Also this is a HTML question rather then PHP so i'll move it

Share this post


Link to post
Share on other sites
Basically, only fonts that exist on the client computer can be displayed by the client browser, i.e. if I don't have amazingly_awful.ttf on my computer it will not display even if it's on your server and defined in your html/CSS code.

There are three alternatives:

#1 - the best: don't use non-standard fonts

#2 - restrict the use of non-standard fonts to images.  There's an obvious accessibility problem with that since screen readers can't read images. Google for IFR or sIFR for some reasonable CSS workarounds.  Using images can be either static images you create or dynamic images generated by GD at runtime.

#3 - attempt to use Microsoft's [url=http://www.microsoft.com/typography/web/embedding/weft3/]http://www.microsoft.com/typography/web/embedding/weft3/[/url] [WEFT] technology which might result in your font being displayed on a visitor's web page.  Tricky and time-consuming.

Share this post


Link to post
Share on other sites
Thanks for the quick reply
I think I will stick with the standard Arial. Cross Browser Friendly then.

Share this post


Link to post
Share on other sites
I'm not sure that Arial is part of the Mac default font set ... arial, helvetica is the solution if that's the case.

Share this post


Link to post
Share on other sites
Sorry, I will use the the following
font-family: Arial, Helvetica, sans-serif;
Which I normally do anyway.

Share this post


Link to post
Share on other sites
[quote author=onlyican link=topic=105756.msg422579#msg422579 date=1156632284]
Sorry, I will use the the following
font-family: Arial, Helvetica, sans-serif;
Which I normally do anyway.
[/quote]
As far as I know, none of those fonts are included in linux. Try:
[code]
font-family: Arial, Helvetica, Deja Vu Sans, sans-serif;[/code]

Share this post


Link to post
Share on other sites
if the font is not found on the users machine, then the users standard font will be used wont it

Share this post


Link to post
Share on other sites
If the user has specified a defualt font for their browser to use it'll use that font, however by defualt a user will have a defualt font selected, usually sans-sarif.

Share this post


Link to post
Share on other sites
So
My point is (except the orig question of using a unique font)
if the font I mention in the script is not on the users machine, no matter if there using Mac, Linux or Micro N Soft
A font will be selected, and the text will be shown

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.