|
Posted by AlexVN on 12/18/35 11:50
Hi,
CSS supports specifying the font location url from which the font file
will be downloaded.
Consider this:
<STYLE TYPE="text/css" MEDIA="screen, print">
@font-face {
font-family: "Robson Celtic";
src: url("http://site/fonts/rob-celt")
}
H1 { font-family: "Robson Celtic", serif }
</STYLE>
from
http://www.w3.org/TR/REC-CSS2/fonts.html
This is not a commonly used practice and web designers are avoiding it.
Please use it only when there are very strong reasons.
Sincerely,
Alexander
David Haynes wrote:
> ctclibby wrote:
> > Hi all
> >
> > Have a customer that wants a specific font included in her web page
> > design; Comic Sans MS. This is one of the MS core fonts. The problem
> > I have is that some of the *nix browsers do NOT include these fonts by
> > default.
> >
> > http://www.diamondvet.com/test renders those fonts correctly using an
> > XP box. After I installed those fonts on my machine, firefox and
> > mozilla both rendered them correctly. So here is the question:
> >
> > How do I get whatever surfer to download the proper font file? Sure,
> > it can be an option given to the surfer, but how can I find out what
> > fonts are available, then show the surfer a message or something? Is
> > this an automagic thing? Am I going about this all wrong?
> >
> > Thanks in advance.
> >
> > todh
>
> Not really a PHP question, but in the interest of avoiding a MAC truck...
>
> You want to support a font-family. This tells the browser to look at an
> ordered set of fonts and to use the first one it finds for the page.
>
> You'll often see something like:
> sans-serif: Comic Sans MS, Tahoma, Verdana, Arial, Helvetica
>
> which says 'look for Comic Sans MS, then Tahoma, then Verdana, then
> Arial, and finally Helvetica'.
>
> A introduction to CSS will discuss this in more detail.
>
> Some people put a tag line near the bottom of the page saying something
> like "This page looks best when rendered using Comic Sans MS. Get it
> here" but that is no guarantee that they will do that.
>
> If you absolutely have to use Comic Sans MS, you will probably have to
> send pre-rendered images of the text (ugly!).
>
> -david-
Navigation:
[Reply to this message]
|