Web typography refers to the use of fonts on the Web. When HTML was first created, font faces and styles were controlled exclusively by the settings of each web browser. There was no mechanism for individual web pages to control font display until Netscape introduced the <font> tag in 1995, which was then standardized in the HTML 2 specification. However, the font specified by the tag had to be installed on the user's computer or a fallback font, such as a browser's default sans-serif or monospace font, would be used. The first Cascading Style Sheets specification was published in 1996 and provided the same capabilities.
The CSS2 specification was released in 1998 and attempted to improve the font selection process by adding font matching, synthesis, and download. These techniques did not gain much usage, and were removed in the CSS2.1 specification. However, Internet Explorer added support for the font downloading feature in version 4.0. Font downloading was later included in the CSS3 fonts module, and has since been implemented in Safari 3.1, Opera 10 and Mozilla Firefox 3.5. This has subsequently increased interest in web typography, as well as the usage of font downloading.
Contents |
In the first CSS specification,[1] authors specifed font characteristics via a series of properties:
font-familyfont-stylefont-variantfont-weightfont-sizeAll fonts were identified solely by name. Beyond the properties mentioned above, designers had no way to style fonts, and no mechanism existed to select fonts which were not present on the client system.
Web-safe fonts are fonts likely to be present on a wide range of computer systems, and used by web content authors to increase the likelihood that content will be displayed in their chosen font. If a visitor to a website does not have the specified font, their browser will attempt to select a similar alternative, based on the author-specified fallback fonts and generic families.
In order to ensure that all web users had a basic set of fonts, Microsoft started Core fonts for the Web initiative. The released fonts include Arial, Georgia, Times New Roman, and Verdana under an EULA which made them freely distributable. Their high penetration rate has made them a staple for web designers.
CSS2 attempted to increase the tools available to web developers by adding font synthesis, improved font matching and the ability to download remote fonts.[2]
Some CSS2 font properties were removed from CSS2.1 and later included in CSS3.[3][4]
The CSS specification allows for multiple fonts to be listed as fallback fonts.[5] In CSS, the font-family property accepts a list of comma-separated font faces to be used, like so:
font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
The first font specified is the preferred font. If this font is not available, the web browser will attempt to use the next font in the list. If none of the fonts specified are found, the browser will resort to displaying its default font face. This same process also happens on a per-character basis if the browser is trying to display a character which is not present in the specified font.
In order to give web designers some control over the appearance of fonts on their web pages even when the specified fonts are not available, the CSS specification allows the use of several generic font families. These families are designed to split fonts into several categories based on their general appearance. They are commonly specified as the last in a series of fallback fonts, as a last resort in the event that none of the fonts specified by the author are available. There are five generic families:[5]
Fantasy
A technique to download remote fonts was first specified in the CSS2 specification, which introduced the @font-face rule.
It was (and remains[7]) controversial because using a remote font as part of a web page allows the font to be freely downloaded. This could result in fonts being used against the terms of their license or illegally spread through the web. TrueDoc (PFR), Embedded OpenType (EOT) and Web Open Font Format (WOFF) are formats designed to address these issues.
Since the introduction of Internet Explorer 4, font embedding employing EOT has been used mainly for displaying characters in writing systems that are not supported by default fonts. Usage on English-language websites was virtually non-existent. With the releases of Firefox 3.5, Opera 10 and Safari 3.1, usage employing other formats is expected to increase.
By using a specific CSS @font-face embedding technique[8] it is possible to embed fonts such that they work with IE4+, Firefox 3.5+, Safari 3.1+, Opera 10+ and Chrome 4.0+. This allows the vast majority of web users to access this functionality. Some foundries, in particular, Hoefler & Frere-Jones has expressed that while they "enthusiastically [support] the emergence of a more expressive web in which designers can safely and reliably use high-quality fonts online" the current delivery of fonts using @font-face is considered "illegal distribution" by the foundry and is not permitted.[9]
Bitstream developed TrueDoc, the first standard for embedding fonts. TrueDoc was natively supported in Netscape Navigator 4, but was discontinued in Netscape Navigator 6 and Mozilla because Netscape could not release Bitstream's source code. A WebFont Player plugin was available for Internet Explorer, but the technology had to compete against Microsoft's Embedded OpenType fonts natively supported since version 4.0.
Internet Explorer has supported font embedding through the proprietary Embedded OpenType standard since version 4.0. It uses digital rights management techniques to help prevent fonts from being copied and used without a license. A simplified subset of EOT has been formalized under the name of CWT (Compatibility Web Type, formerly EOT-Lite)[10]
Web typography applies to SVG in two ways:
@font-face rule can be applied to text in SVG documents. Opera added support for this in version 10,[11] and WebKit since version 325 also supports this method using SVG fonts only.Mozilla Firefox 3.5+, Opera 10+[12], Safari 3.1+[13] and Google Chrome 4.0+[14] support linking to industry-standard TrueType (TTF) and OpenType (OTF) fonts.
Mozilla Firefox has supported WOFF since version 3.6.[15] Microsoft is reportedly "considering" supporting WOFF in Internet Explorer 9.[16]
Only two fonts available by default on the Windows platform, Arial and Lucida Sans, provide a wide Unicode character repertoire. A bug in Verdana (and the different handling of it by various user agents) hinders its usability where combining characters are desired.
A common hurdle in web design is the design of mockups that include non-web-safe fonts. There are a number of solutions for situations like this. One common solution is to replace the text with a similar web-safe font or use a series of similar-looking fallback fonts.
Another technique is image replacement. This practice involves overlaying text with an image containing the same text written in the desired font. This is good for search engine optimization and aesthetic purposes, but prevents text selection and increases bandwidth use.
Also common is the use of Flash-based solutions such as sIFR. This is similar to image replacement techniques, though the text is selectable and rendered as a vector. However, this method requires the presence of a proprietary plugin on a client's system.
|
|||||||||||||||||||||||||||||||||||||||
|
|