|
Тема |
Re: за буквите, не от черноризец храбър, но... [re: БaбaИлиицa] |
|
Автор |
prinyo () |
|
Публикувано | 05.02.02 14:54 |
|
|
For example, here the font 'Robson Celtic' is defined and referenced in a style sheet contained in an HTML document.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD>
<TITLE>Font test</TITLE>
<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>
</HEAD>
<BODY>
<H1> This heading is displayed using Robson Celtic</H1>
</BODY>
</HTML>
The style sheet (in the STYLE element) contains a CSS rule that sets all H1 elements to use the 'Robson Celtic' font family.
A CSS1 implementation will search the client for a font whose family name and other properties match 'Robson Celtic' and, if it fails to find it, will use the UA-specific fallback serif font (which is defined to exist).
A user agent implementing CSS2 will first examine @font-face rules in search of a font description defining 'Robson Celtic'. This example contains a rule that matches. Although this rule doesn't contain much font data, it does have a URI where the font can be retrieved for rendering this document. Downloaded fonts should not be made available to other applications. If no matching @font-face is found, the user agent will attempt the same match as a user agent implementing CSS1.
Note that if the font 'Robson Celtic' had been installed on the client system, this would have caused the UA to add an entry in the font database for the installed copy as described in the section on the font matching algorithm. The installed copy would have been matched before the downloadable font in the example above.
|
| |
за буквите, не от черноризец храбър, но...
|
БaбaИлиицa
| 05.02.02 01:21 |
Re: за буквите, не от черноризец храбър, но...
| pro_O1
| 05.02.02 09:51 |
Re: за буквите, не от черноризец храбър, но...
| css
| 05.02.02 10:30 |
Re: за буквите, не от черноризец храбър, но...
| БaбaИлиицa
| 05.02.02 13:32 |
Re: за буквите, не от черноризец храбър, но...
| БaбaИлиицa
| 05.02.02 13:25 |
Re: за буквите, не от черноризец храбър, но...
| Blake
| 05.02.02 13:48 |
Re: за буквите, не от черноризец храбър, но...
| БaбaИлиицa
| 05.02.02 13:58 |
Re: за буквите, не от черноризец храбър, но...
| ohu-bohu
| 05.02.02 14:14 |
Re: за буквите, не от черноризец храбър, но...
| evgord
| 05.02.02 14:34 |
Re: за буквите, не от черноризец храбър, но...
| prinyo
| 05.02.02 14:54 |
Re: за буквите, не от черноризец храбър, но...
| Suicider
| 05.02.02 23:24 |
Re: за буквите, не от черноризец храбър, но...
| kkkolio
| 06.02.02 08:55 |
имало решение все пак!
| БaбaИлиицa
| 07.02.02 01:07 |
Re: имало решение все пак!Въпрос
| Eдин
| 07.02.02 16:52 |
Re: имало решение все пак!Въпрос
| Wise Guy
| 07.02.02 22:57 |
Re: имало решение все пак!Въпрос
| БaбaИлиицa
| 08.02.02 00:26 |
Re: имало решение все пак!Въпрос
| htmlgirl
| 08.02.02 12:39 |
Re: имало решение все пак!Въпрос
| Eдин
| 08.02.02 15:03 |
|
|
|
|