22.12.2013 Views

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Value: [ [format( [, ]*)] | ] [, <br />

[format( [, ]*)] | ]*<br />

Initial: undefined<br />

Media: visual<br />

This is a prioritized, comma-separated list of external references and/or locally<br />

installed font face names. The external reference points to the font data on the<br />

Web. This is required if the WebFont is to be downloaded. The font resource may<br />

be a subset of the source font, for example it may contain only the glyphs needed<br />

for the current page or for a set of pages.<br />

The external reference consists of a URI, followed by an optional hint regarding<br />

the format of font resource to be found at that URI, and this information<br />

should be used by clients to avoid following links to fonts in formats they are<br />

unable to use. As with any hypertext reference, there may be other formats available,<br />

but the client has a better idea of what is likely to be there, in a more robust<br />

way than trying to parse filename extensions in URIs.<br />

The format hint contains a comma-separated list of format strings that denote<br />

well-known font formats. The user agent will recognize the name of font formats<br />

that it supports, and will avoid downloading fonts in formats that it does not<br />

recognize.<br />

An initial list of format strings defined by this specification and representing<br />

formats likely to be used by implementations on various platforms is:<br />

String<br />

"truedoc-pfr"<br />

Font Format<br />

TrueDoc Portable<br />

Font Resource<br />

Examples of common<br />

extensions<br />

.pfr<br />

"embedded-opentype" Embedded OpenType .eot<br />

"type-1" PostScript Type 1 .pfb, .pfa<br />

"truetype" TrueType .ttf<br />

"opentype"<br />

"truetype-gx"<br />

"speedo"<br />

"intellifont"<br />

OpenType, including<br />

TrueType Open<br />

TrueType with GX<br />

extensions<br />

Speedo<br />

Intellifont<br />

.ttf<br />

As with other URIs in CSS [p. 46] , the URI may be partial, in which case it is<br />

resolved relative to the location of the style sheet containing the @font-face.<br />

The locally-installed is the full font name of a locally installed<br />

font. The full font name is the name of the font as reported by the operating<br />

system and is the name most likely to be used in reader style sheets, browser<br />

default style sheets or possibly author style sheets on an intranet. Adornments<br />

such as bold, italic, and underline are often used to differentiate faces within a<br />

font family. For more information about full font names [p. 226] please consult the<br />

219

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!