Fonts

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
rajan
Forum Contributor
Posts: 110
Joined: Sun Aug 28, 2005 7:42 pm
Location: Lucknow, UP, India

Fonts

Post by rajan »

Can I use my folder font files on my html page? If yes then how?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Explain... a lot more.
User avatar
figaro11
Forum Commoner
Posts: 64
Joined: Mon Sep 17, 2007 11:49 pm

Post by figaro11 »

The fonts in your HTML pages are limited to the number of fonts on the clients machine. In other words, if the person browsing you HTML page has the font on their computer, then that font will be displayed.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

figaro11 wrote:The fonts in your HTML pages are limited to the number of fonts on the clients machine. In other words, if the person browsing you HTML page has the font on their computer, then that font will be displayed.
Not true. Fonts can be referenced from the pages which do not reside on the client machine, but on the server. However, using nonstandard fonts in page text is generally a really bad idea.
User avatar
rajan
Forum Contributor
Posts: 110
Joined: Sun Aug 28, 2005 7:42 pm
Location: Lucknow, UP, India

Post by rajan »

Actually I want the functionality that admin can add fonts in a folder through admin panel and which font status is 1 that will be use on html page. Can we use fonts from folder which are not in system fonts folder but in any other folder?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

You may want to check out "sIFR" - a flash/css/javascript enhancement.

As far as I know you can't reference fonts that aren't installed on the client machine, at all.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post by VladSun »

There is a CSS standard for this issue:

Code: Select all

@font-face { 
 font-family: cmsy10; 
 src: url("http://www.domain.com/font/cmsy10.ttf"); 
} 

p {
font-family: cmsy10;
} 
The problem is that it is not supported by many browsers.
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
figaro11
Forum Commoner
Posts: 64
Joined: Mon Sep 17, 2007 11:49 pm

Post by figaro11 »

VladSun wrote:There is a CSS standard for this issue:

Code: Select all

@font-face { 
 font-family: cmsy10; 
 src: url("http://www.domain.com/font/cmsy10.ttf"); 
} 

p {
font-family: cmsy10;
} 
The problem is that it is not supported by many browsers.
IE has been supporting the rule every since IE4 but with their .eot format, instead of the popular TrueType formats.

Up until recently, Safari supports the rule. Opera hopefully will kick in with support.
Post Reply