Web typography
   HOME

TheInfoList



OR:

Web typography is the use of fonts on the
World Wide Web The World Wide Web (WWW), commonly known as the Web, is an information system enabling documents and other web resources to be accessed over the Internet. Documents and downloadable media are made available to the network through web ...
. When
HTML The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaSc ...
was first created, font faces and styles were controlled exclusively by the settings of each
web browser A web browser is application software for accessing websites. When a user requests a web page from a particular website, the browser retrieves its files from a web server and then displays the page on the user's screen. Browsers are used o ...
. There was no mechanism for individual Web pages to control font display until Netscape introduced the font element in 1995, which was then standardized in the HTML 3.2 specification. However, the font specified by the font element had to be installed on the user's computer or a fallback font, such as a browser's default sans-serif or
monospace A monospaced font, also called a fixed-pitch, fixed-width, or non-proportional font, is a font whose letters and characters each occupy the same amount of horizontal space. This contrasts with Typeface#Proportion, variable-width fonts, where t ...
font, would be used. The first Cascading Style Sheets specification was published in 1996 and provided the same capabilities. The
CSS2 Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS is a cornerstone technolo ...
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 use, and were removed in the CSS2.1 specification. However,
Internet Explorer Internet Explorer (formerly Microsoft Internet Explorer and Windows Internet Explorer, commonly abbreviated IE or MSIE) is a series of graphical web browsers developed by Microsoft which was used in the Windows line of operating systems ( ...
added support for the font downloading feature in version 4.0, released in 1997. 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 use of font downloading.


CSS1

In the first CSS specification, authors specified font characteristics via a series of properties: * * * * * All 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 not present on the client system.


Web-safe fonts

Web-safe fonts are
fonts In metal typesetting, a font is a particular size, weight and style of a typeface. Each font is a matched set of type, with a piece (a " sort") for each glyph. A typeface consists of a range of such fonts that shared an overall design. In mod ...
likely to be present on a wide range of computer systems, and used by Web content authors to increase the likelihood that content displays in their chosen font. If a visitor to a Web site does not have the specified font, their browser tries to select a similar alternative, based on the author-specified fallback fonts and generic families or it uses
font substitution Font substitution is the process of using one typeface in place of another when the intended typeface either is not available or does not contain glyphs for the required characters. Font substitution can be aided by: * classifying fonts into ge ...
defined in the visitor's operating system.


Microsoft's Core fonts for the Web

To ensure that all Web users had a basic set of fonts,
Microsoft Microsoft Corporation is an American multinational technology corporation producing computer software, consumer electronics, personal computers, and related services headquartered at the Microsoft Redmond campus located in Redmond, Washin ...
started the
Core fonts for the Web Core fonts for the Web was a project started by Microsoft in 1996 to create a standard pack of fonts for the World Wide Web. It included the proprietary fonts Andalé Mono, Arial, Arial Black, Comic Sans MS, Courier New, Georgia, Impact, Times Ne ...
initiative in 1996 (terminated in 2002). Released fonts include
Arial Arial (also called Arial MT) is a sans-serif typeface and set of computer fonts in the neo-grotesque style. Fonts from the Arial family are included with all versions of Microsoft Windows from Windows 3.1 on, some other Microsoft software ap ...
,
Courier New Courier is a monospaced slab serif typeface. The typeface was designed by Howard "Bud" Kettler (1919–1999). Initially created for IBM's typewriters, it has been adapted for use as a computer font, and versions of it are installed on most deskt ...
,
Times New Roman Times New Roman is a serif typeface. It was commissioned by the British newspaper ''The Times'' in 1931 and conceived by Stanley Morison, the artistic adviser to the British branch of the printing equipment company Monotype, in collaboration w ...
, Comic Sans, Impact,
Georgia Georgia most commonly refers to: * Georgia (country), a country in the Caucasus region of Eurasia * Georgia (U.S. state), a state in the Southeast United States Georgia may also refer to: Places Historical states and entities * Related to the ...
,
Trebuchet A trebuchet (french: trébuchet) is a type of catapult that uses a long arm to throw a projectile. It was a common powerful siege engine until the advent of gunpowder. The design of a trebuchet allows it to launch projectiles of greater weight ...
,
Webdings Webdings is a TrueType dingbat typeface developed in 1997. It was initially distributed with Internet Explorer 4.0, then as part of Core fonts for the Web, and is included in all versions of Microsoft Windows since Windows 98. All of the picto ...
and
Verdana Verdana is a humanist sans-serif typeface designed by Matthew Carter for Microsoft Corporation, with hand-hinting done by Thomas Rickner, then at Monotype. Demand for such a typeface was recognized by Virginia Howlett of Microsoft's typograph ...
—under an
EULA An end-user license agreement or EULA () is a legal contract between a software supplier and a customer or end-user, generally made available to the customer via a retailer acting as an intermediary. A EULA specifies in detail the rights and restr ...
that made them freely distributable but also limited some rights to their use. Their high penetration rate has made them a staple for Web designers. However, most
Linux distributions A Linux distribution (often abbreviated as distro) is an operating system made from a software collection that includes the Linux kernel and, often, a package management system. Linux users usually obtain their operating system by downloading one ...
don't include these fonts by default.
CSS2 Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS is a cornerstone technolo ...
attempted to increase the tools available to Web developers by adding font synthesis, improved font matching and the ability to download remote fonts. Some CSS2 font properties were removed from CSS2.1 and later included in CSS3.


Fallback fonts

The CSS specification allows for multiple fonts to be listed as fallback fonts. In CSS, the font-family property accepts a list of comma-separated font faces to use, like so: font-family: "Nimbus Sans L", Helvetica, Arial, sans-serif; The first font specified is the preferred font. If this font is not available, the Web browser attempts to use the next font in the list. If none of the fonts specified are found, the browser displays its default font. This same process also happens on a per-character basis if the browser tries to display a character not present in the specified font.


Generic font families

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. For several years, there were five generic families: Sans-serif : Fonts that do not have decorative markings, or serifs, on their letters. These fonts are often considered easier to read on screens. Serif : Fonts that have decorative markings, or serifs, present on their characters. These fonts are traditionally used in printed books.
Monospace A monospaced font, also called a fixed-pitch, fixed-width, or non-proportional font, is a font whose letters and characters each occupy the same amount of horizontal space. This contrasts with Typeface#Proportion, variable-width fonts, where t ...
: Fonts in which all characters are equally wide. Cursive : Fonts that resemble cursive writing. These fonts may have a decorative appearance, but they can be difficult to read at small sizes, so they are generally used sparingly.
Fantasy Fantasy is a genre of speculative fiction involving magical elements, typically set in a fictional universe and sometimes inspired by mythology and folklore. Its roots are in oral traditions, which then became fantasy literature and d ...
: Fonts that may contain symbols or other decorative properties, but still represent the specified character.


CSS fonts working draft 4 with lesser browser support

: Default fonts on a given system: the purpose of this option is to allow web content to integrate with the look and feel of the native OS. : Default fonts on a given system in a serif style : Default fonts on a given system in a sans-serif style : Default fonts on a given system in a monospace style : Default fonts on a given system in a rounded style :Fonts using emoji :Fonts for complex mathematical formula and expressions. ), font=fangsong :Chinese typefaces that are between serif Song and cursive Kai forms. This style is often used for government documents.


Web fonts


History

A technique to refer to and automatically download remote fonts was first specified in the CSS2 specification, which introduced the @font-face construct. At the time, fetching font files from the web was controversial because fonts meant to be used only for certain web pages could also be downloaded and installed in breach of the font license. Microsoft first added support for downloadable EOT fonts in
Internet Explorer 4 Microsoft Internet Explorer 4 (IE4) is a graphical web browser that Microsoft unveiled in Spring of 1997, and released in September 1997, primarily for Microsoft Windows, but also with versions available for the classic Mac OS, Solaris, and H ...
in 1997. Authors had to use the proprietary
WEFT Warp and weft are the two basic components used in weaving to turn thread or yarn into fabric. The lengthwise or longitudinal warp yarns are held stationary in tension on a frame or loom while the transverse weft (sometimes woof) is dra ...
tool to create a subsetted font file for each page. EOT showed that webfonts could work and the format saw some use in
writing system A writing system is a method of visually representing verbal communication, based on a script and a set of rules regulating its use. While both writing and speech are useful in conveying messages, writing differs in also being a reliable fo ...
s not supported by common operating systems. However, the format never gained widespread acceptance and was ultimately rejected by W3C. In 2006, Håkon Wium Lie started a campaign against using EOT and rather have web browsers support commonly used font formats. Support for the commonly used TrueType and OpenType font formats has since been implemented in Safari 3.1, Opera 10, Mozilla Firefox 3.5 and Internet Explorer 9. In 2010, the WOFF compression method for TrueType and OpenType fonts was submitted to W3C by the
Mozilla Foundation The Mozilla Foundation (stylized as moz://a) is an American non-profit organization that exists to support and collectively lead the open source Mozilla project. Founded in July 2003, the organization sets the policies that govern development, ...
,
Opera Software Opera is a Norwegian multinational technology company and subsidiary of Kunlun that specializes in web browser development, fintech, as well as services such as Opera News and YoYo Games. The company's total user base, including users of its ...
and
Microsoft Microsoft Corporation is an American multinational technology corporation producing computer software, consumer electronics, personal computers, and related services headquartered at the Microsoft Redmond campus located in Redmond, Washin ...
, and browsers have since added support.
Google Fonts Google Fonts (formerly known as Google Web Fonts) is a computer font and web font service owned by Google. This includes free and open source font families, an interactive web directory for browsing the library, and APIs for using the fonts v ...
was launched in 2010 to serve webfonts under open-source licenses. By 2016, more than 800 webfont families are available. Webfonts have become an important tool for web designers and as of 2016 a majority of sites use webfonts.


File formats

By using a specific CSS @font-face embedding technique 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 commercial foundries object to the redistribution of their fonts. For example,
Hoefler & Frere-Jones Hoefler&Co. (H&Co) is a digital type foundry (font design studio) in Woburn, Massachusetts (formerly New York City), founded by type designer Jonathan Hoefler. H&Co designs typefaces for clients and for retail on its website. The company was foun ...
says that, while they "...enthusiastically upportthe 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. Instead, Hoefler & Co. offer a proprietary font delivery system rooted in the cloud. Many other commercial type foundries address the redistribution of their fonts by offering a specific license, known as a web font license, which permits the use of the font software to display content on the web, a use normally prohibited by basic desktop licenses. Naturally this does not interfere with fonts and foundries under free licences.See
Open-source typefaces Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use the source code, design documents, or content of the product. The open-source model is a decentralized sof ...
and
Free software Unicode typefaces There are Unicode typefaces which are open-source and designed to contain glyphs of all Unicode characters, or at least a broad selection of Unicode scripts. There are also numerous projects aimed at providing only a certain script, such as the ...
listings for such fonts.


TrueDoc

TrueDoc, while not specifically a webfont specification, was the first standard for embedding fonts. It was developed by the type foundry
Bitstream A bitstream (or bit stream), also known as binary sequence, is a sequence of bits. A bytestream is a sequence of bytes. Typically, each byte is an 8-bit quantity, and so the term octet stream is sometimes used interchangeably. An octet may ...
in 1994, and became natively supported in
Netscape Navigator Netscape Navigator was a web browser, and the original browser of the Netscape line, from versions 1 to 4.08, and 9.x. It was the flagship product of the Netscape Communications Corp and was the dominant web browser in terms of usage share in ...
4, in 1996. Due to open source license restrictions, with Netscape unable to release Bitstream's source code, native support for the technology ended when Netscape Navigator 6 was released. An
ActiveX ActiveX is a deprecated software framework created by Microsoft that adapts its earlier Component Object Model (COM) and Object Linking and Embedding (OLE) technologies for content downloaded from a network, particularly from the World Wide We ...
plugin was available to add support for TrueDoc to
Internet Explorer Internet Explorer (formerly Microsoft Internet Explorer and Windows Internet Explorer, commonly abbreviated IE or MSIE) is a series of graphical web browsers developed by Microsoft which was used in the Windows line of operating systems ( ...
, but the technology had to compete against
Microsoft Microsoft Corporation is an American multinational technology corporation producing computer software, consumer electronics, personal computers, and related services headquartered at the Microsoft Redmond campus located in Redmond, Washin ...
's Embedded OpenType fonts, which had natively supported in their Internet Explorer browser since version 4.0. Another impediment was the lack of open-source or free tool to create webfonts in TrueDoc format, whereas Microsoft made available a free Web Embedding Fonts Tool to create webfonts in their format.


Embedded OpenType

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'')


Scalable Vector Graphics

Web typography applies to SVG in two ways: #All versions of the SVG 1.1 specification, including the SVGT subset, define a font module allowing the creation of fonts within an SVG document. Safari introduced support for many of these properties in version 3.
Opera Opera is a form of theatre in which music is a fundamental component and dramatic roles are taken by singers. Such a "work" (the literal translation of the Italian word "opera") is typically a collaboration between a composer and a libr ...
added preliminary support in version 8.0, with support for more properties in 9.0. #The SVG specification lets CSS apply to SVG documents in a similar manner to HTML documents, and the @font-face rule can be applied to text in SVG documents. Opera added support for this in version 10, and
WebKit WebKit is a browser engine developed by Apple and primarily used in its Safari web browser, as well as on the iOS and iPadOS version of any web browser. WebKit is also used by the BlackBerry Browser, PlayStation consoles beginning from the P ...
since version 325 also supports this method using SVG fonts only.


Scalable Vector Graphics Fonts

SVG fonts was a W3C standard of fonts using SVG graphic that became a subset of OpenType fonts. It allowed multicolor or animated fonts. It was first a subset of SVG 1.1 specifications but it has been deprecated in the SVG 2.0 specification. The SVG fonts as independent format is supported by most browsers apart from IE and Firefox, and is deprecated in Chrome (and Chromium). That's now generally deprecated; the standard that most browser vendor agreed with is SVG font subset included in OpenType (and then WOFF superset, see below), called SVGOpenTypeFonts. Firefox has supported SVG OpenType since Firefox 26.


TrueType/OpenType

Linking to industry-standard ''TrueType'' (TTF) and ''OpenType'' (TTF/OTF) fonts is supported by Mozilla Firefox 3.5+, Opera 10+, Safari 3.1+, and Google Chrome 4.0+. Internet Explorer 9+ supports only those fonts with embedding permissions set to installable.


Web Open Font Format

The Web Open Font Format (WOFF) is essentially
OpenType OpenType is a format for scalable computer fonts. It was built on its predecessor TrueType, retaining TrueType's basic structure and adding many intricate data structures for prescribing typographic behavior. OpenType is a registered trademark ...
or
TrueType TrueType is an outline font standard developed by Apple in the late 1980s as a competitor to Adobe's Type 1 fonts used in PostScript. It has become the most common format for fonts on the classic Mac OS, macOS, and Microsoft Windows operating ...
with compression and additional metadata. WOFF is supported by Mozilla Firefox 3.6+, Google Chrome 5+,
Opera Opera is a form of theatre in which music is a fundamental component and dramatic roles are taken by singers. Such a "work" (the literal translation of the Italian word "opera") is typically a collaboration between a composer and a libr ...
Presto, and is supported by Internet Explorer 9 (since March 14, 2011). Support is available on Mac OS X Lion's Safari from release 5.1.


Unicode fonts

Only two fonts available by default on the
Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for ser ...
platform,
Microsoft Sans Serif Microsoft Sans Serif is a TrueType font introduced with early Windows versions. It is the successor of MS Sans Serif (formerly Helv), a proportional bitmap font introduced in Windows 1.0. Both fonts are very similar in design to Arial and Helvet ...
and Lucida Sans Unicode, provide a wide
Unicode Unicode, formally The Unicode Standard,The formal version reference is is an information technology standard for the consistent encoding, representation, and handling of text expressed in most of the world's writing systems. The standard, wh ...
character repertoire. A bug in Verdana (and the different handling of it by various user agents) hinders its usability where combining characters are desired. On free and open-source software platforms such as
Linux Linux ( or ) is a family of open-source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically packaged as a Linux distribution, w ...
, GNU Unifont and
GNU FreeFont GNU FreeFont (also known as Free UCS Outline Fonts) is a family of free OpenType, TrueType and WOFF vector fonts, implementing as much of the Universal Character Set (UCS) as possible, aside from the very large CJK Asian character set. The p ...
provide a wide range of
Unicode Unicode, formally The Unicode Standard,The formal version reference is is an information technology standard for the consistent encoding, representation, and handling of text expressed in most of the world's writing systems. The standard, wh ...
character.


Alternatives

A common hurdle in Web design is the design of mockups that include fonts that are not Web-safe. 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 aesthetic purposes, but prevents text selection, increases bandwidth use, is bad for
search engine optimization Search engine optimization (SEO) is the process of improving the quality and quantity of website traffic to a website or a web page from search engines. SEO targets unpaid traffic (known as "natural" or " organic" results) rather than dire ...
, and makes the text inaccessible for users with disabilities. In the past,
Flash Flash, flashes, or FLASH may refer to: Arts, entertainment, and media Fictional aliases * Flash (DC Comics character), several DC Comics superheroes with super speed: ** Flash (Barry Allen) ** Flash (Jay Garrick) ** Wally West, the first Kid F ...
-based solutions such as sIFR were used. 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. Another solution is using Javascript to replace the text with
VML Vector Markup Language (VML) is an obsolete XML-based file format for two-dimensional vector graphics. It was specified in Part 4 of the Office Open XML standards ISO/ IEC 29500 and ECMA-376. According to the specification, VML is a deprecat ...
(for Internet Explorer) or SVG (for all other browsers).About Cufon
/ref>


See also

* Scalable Inman Flash Replacement


Notes


References


External links


W3C CSS Fonts Specification
* List of RFC as mentioned in WOFF (draft of 2009-10-23): ** ZLIB Compressed Data Format Specification ** Key words for use in RFCs to Indicate Requirement Levels ** Matching of Language Tags {{DEFAULTSORT:Web Typography Digital typography Web design