Fonts
Posted: Fri Oct 05, 2007 8:12 am
Can I use my folder font files on my html page? If yes then how?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
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.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.
Code: Select all
@font-face {
font-family: cmsy10;
src: url("http://www.domain.com/font/cmsy10.ttf");
}
p {
font-family: cmsy10;
}
IE has been supporting the rule every since IE4 but with their .eot format, instead of the popular TrueType formats.VladSun wrote:There is a CSS standard for this issue:
The problem is that it is not supported by many browsers.Code: Select all
@font-face { font-family: cmsy10; src: url("http://www.domain.com/font/cmsy10.ttf"); } p { font-family: cmsy10; }