Fonts

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Fonts

Post by Parody »

I am using a CSS stylesheet for my site and was wondering if I can create a font to use on my site?

So have a file on the site with the font in that I can use throughout :?:
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

Fonts are installed on the user's computer. If the user doesn't alreay have the font installed they will have to download it and install it on their machine before they can see it on your site.
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Post by Parody »

Ok :(
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

There is, supposedly, technology that lets browsers download fonts automatically, but there's a lot of rough edges on the implementation. Wait a bit.
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

I too have heard about it but jus can't remember the details... I think there are some tags/directives placed in the css/html that tell the browser to download the font from a specified location if it doesn't find it.
Syranide
Forum Contributor
Posts: 281
Joined: Fri May 20, 2005 3:16 pm
Location: Sweden

Post by Syranide »

there is and I know it is something with an @ at the beginning in the CSS.
however as the other pointed out, shouldn't be done as you are depending on something unreliable, if you are using this font for the entire page, rethink perhaps, if you are using it for headers, make images.
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

Code: Select all

@font-face {
    font-family: &quote;Some Font&quote;;
    src: url(&quote;http://site/fonts/some-font&quote;)
}
Only works in IE as far as I know though.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

vigge89 wrote:

Code: Select all

@font-face {
    font-family: &quote;Some Font&quote;;
    src: url(&quote;http://site/fonts/some-font&quote;)
}
Only works in IE as far as I know though.
Genius.... I must make a note of this. It's certainly nt something I have come across before. You just specify a standard TTF file with that?
Syranide
Forum Contributor
Posts: 281
Joined: Fri May 20, 2005 3:16 pm
Location: Sweden

Post by Syranide »

you specify name and url to the font.
(TTF or whatever format you like that is supported) ;)
Post Reply