- TrueType
Infobox file format
name = TrueType
icon =
extension =.ttf
mime =
owner =Apple Computer
typecode =tfil
genre =outline font TrueType is an
outline font standard originally developed byApple Computer in the late 1980s as a competitor to Adobe'sType 1 font s used inPostScript . The primary strength of TrueType was originally that it offeredfont developers a high degree of control over precisely how their fonts are displayed, right down to particularpixel s, at various font heights. (With widely varying rendering technologies in use today, pixel-level control is no longer certain.)History
Apple
On the Macintosh, fonts were originally stored in hand-tuned
bitmap font files that specified individual pixel locations for a font at a particular size. If the user wanted to see a font at another size, the Font Manager will find the closest match and will apply a basic scaling algorithm. When scaled to large sizes the effect was comical—since these fonts were bitmapped, they would scale the same way anyraster graphics image does, becoming blocky.In contrast, printer fonts for the popular
Apple LaserWriter were based onPostScript Type 1 outlines, resulting in excellent output at any size. Outline fonts have a set of equations for drawing lines and curves to create a shape for each character (a "glyph"). By following the equations, the computer draws an "outline" shape at a specific size, and then "fills" it with ink (e.g., black) to create the character. The equations scale to any size, and are independent of the resolution of the screen or printer. It produces the same quality whether it's printing to film, drawing on a screen, or printing a billboard. This technology was the key invention that the founders of Adobe engineered and marketed as PostScript. Making matters difficult was the fact that Type 1 fonts were encrypted, and Adobe made a considerable amount of their income from licensing the format to interested parties. They were not about to simply allow Apple to include the software for free.Instead
Sampo Kaasila at Apple decided to write an entirely new format, which he worked on under the name "Bass" (because it was a scalable font format, and you can scale a fish, and perhaps as in "Bass-o-matic" from theSaturday Night Live sketch) [cite web | url=http://www.truetype-typography.com/truetype/sampo.htm | title=A Talk with Sampo Kaasila | publisher=TrueType Typography | accessdate=2007-01-10] and later "Royal". The system developed and was eventually released as TrueType with the launch of Mac OS System 7 in May 1991. The fonts, four-weight families of "Times Roman ", "Helvetica ", "Courier", and a handful of others, replaced the olderbitmap font s that previous Macintosh System versions had used. For compatibility with older systems, Apple also shipped a TrueType Extension and a TrueType aware version of Font/DA Mover forSystem Software 6 .One huge drawback of the TrueType system is that it could not use Type 1 fonts on-screen—not surprising given its genesis. However this meant that the system was in fact not used by the very people it was intended to help, desktop publishing software users. They had already invested considerable money in commercial Type 1 fonts, which they were not interested in replacing, and therefore had to continue using Adobe Type Manager (see below). Adding to the problem was that there were very few fonts available in TrueType format, so even if one wanted to start fresh there was no real way to do so.
As part of Apple's new tactic of distancing itself from Adobe, Apple licensed TrueType to
Microsoft , in exchange for a license forTrueImage , a Microsoft-developedPostScript -compatible printer control language that Apple planned to use in theirlaser printer s. This printer language was never actually included in any Apple products.Part of Adobe's response to learning that TrueType was being developed was to pre-emptively create the
Adobe Type Manager software to scale Type 1 fonts on-screen and for output to any printer, much like TrueType fonts. Although ATM initially cost money, rather than coming free with the operating system, it became a de facto standard for anyone involved indesktop publishing .When TrueType was announced,
John Warnock of Adobe gave an impassioned speech in which he claimed Apple and Microsoft were sellingsnake oil , and then instantly released the Type 1 format as a published standard for anyone to use. This put even more pressure on TrueType. Apple eventually renewed agreements with Adobe for the use of PostScript in its printers; it is speculated that Apple's tactics resulted in lower royalty payments to Adobe as part of its new licensing agreements.Apple extended TrueType with the launch of TrueType GX in 1994, a
smartfont technology that was part ofQuickDraw GX . This offered powerful extensions in two main areas. First was font axes (morphing ), for example allowing fonts to be smoothly adjusted from light to bold or from narrow to extended—competition for Adobe's "multiple master" technology. Second was substitution, where particular sequences of characters can be coded to flip to different designs in certain circumstances, useful for example to offer ligatures for "fi", "ffi", "ct", etc. while maintaining the backing store of characters necessary forspell-checker s and text searching. However, the lack of user-friendly tools for making TrueType GX fonts meant there were no more than a handful of GX fonts. Much of the technology in TrueType GX, including morphing and substitution, lives on as AAT (Apple Advanced Typography ) inMac OS X . Few font developers outside Apple attempt to make AAT fonts; instead,OpenType has become the dominant "smart font" technology, despite its lack of support for axes or multiple masters.Microsoft
By 1991 Microsoft added TrueType into the Windows 3.1 operating system. In partnership with their contractors,
Monotype Corporation , Microsoft spent much effort creating a set of high quality TrueType fonts that were compatible with the core fonts being bundled with PostScript equipment at the time. This included the fonts that are standard with Windows to this day:Times New Roman (compatible with Times Roman),Arial (compatible with Helvetica) andCourier New (compatible with Courier). One should understand "compatible" to mean two things: first, that the fonts are similar to look at, and second, very importantly, the fonts have the same character widths so can be used to typeset the same documents without reflowing the text. (The disjunction of the names, particularly between Arial and Helvetica, led some to believe there was a general problem of having to determine an "equivalent" Apple or PostScript font whenever a particular Windows font was called for, or vice versa. However, while the character outlines themselves are different, the styles and weights have been made similar enough that the average user is unable to tell the fonts apart.)Microsoft and Monotype technicians used TrueType's hinting technology to ensure that these fonts did not suffer from the problem of illegibility at low resolutions which had previously forced the use of bitmapped fonts for screen display. Subsequent advances in technology have introduced first
anti-aliasing , which smooths the edges of fonts at the expense of a slight blurring, and more recentlysubpixel rendering (the Microsoft implementation goes by the nameClearType ), which exploits the pixel structure ofTFT LCD based displays to increase the apparent resolution of text. Microsoft has marketed these technologies particularly heavily, and they are now widely used on all platforms.Microsoft also developed a "
smart font " technology, named "TrueType Open" in 1994, later renamed toOpenType in 1996 when it merged support of the Adobe Type 1 glyph outlines.TrueType today
Macintosh and Windows
TrueType has long been the most common format for fonts on
Mac OS and Windows, although both also include native support for Adobe's Type 1 format and theOpenType extension to TrueType (sinceMac OS X 10.0 andWindows 2000 ). While some fonts provided with the new operating systems are now in the OpenType format, most free or inexpensive third-party fonts use plain TrueType.Increasing resolutions and new approaches to screen rendering have reduced the requirement of extensive TrueType hinting. Apple's rendering approach on Mac OS X ignores almost all the hints in a TrueType font, while Microsoft's ClearType ignores many hints, and according to Microsoft, works best with "lightly hinted" fonts.
Linux and other platforms
The
FreeType project of David Turner attempts to create an independent implementation of the TrueType standard (as well as other font standards in FreeType 2). FreeType is included in manyLinux distributions.There are potential patent infringements in FreeType because parts of the TrueType hinting virtual machine were
patent ed by Apple, a fact not mentioned in the TrueType standards. (Patent holders who contribute to standards not published by a major standards body such as ISO are not required to disclose the scope of their patents.) FreeType 2 includes an automatic hinter that analyzesglyph shape s and attempts to generate hints automatically, thus avoiding the patented technology. [http://freetype.sourceforge.net/patents.html] The automatic hinter generally improves the appearance of free or cheap fonts, for which hinting is often either nonexistent or automatically generated anyway, but it can degrade the appearance of professional hand-hinted fonts, and does not work well (or at all) for non-Western text that requires a different approach to hinting. As a result, many people prefer to enable the patented hinting technology.Technical notes
Outlines
The outlines of the characters (or
glyph s) in TrueType fonts are made of straight line segments and quadraticBézier curve s. These mathematically simpler curves are slightly more efficient to process than the cubic Bézier curves prevalent in thePostScript -centered world ofgraphic design , and also used in Type 1 fonts. However, most shapes require more points to describe with quadratic curves than cubics. This difference also means that it is not possible to convert Type 1 losslessly to the TrueType format, although in practice it is often possible to do a lossless conversion from TrueType to Type 1.Hinting language
TrueType systems include a
virtual machine that executes programs inside the font, processing the "hints" of theglyph s. These distort the control points which define the outline, with the intention that the rasterizer produces fewer undesirable features on the glyph. Each glyph's hinting program takes account of the size (in pixels) at which the glyph is to be displayed, as well as other less important factors of the display environment.Although incapable of receiving input and producing output as normally understood in programming, the TrueType hinting language does offer the other prerequisites of programming languages:
conditional branch ing (IF statements), looping an arbitrary number of times (FOR- and WHILE-type statements), variables (although these are simply numbered slots in an area of memory reserved by the font), and encapsulation of code into functions. Special instructions calleddelta hints are the lowest level control, moving a control point at just one pixel size.Good TrueType glyph programming techniques are meant to do as much as possible using variables defined just once in the whole font (e.g., stem widths,
cap height ,x-height ). This means avoiding delta instructions as much as possible. This helps the font developer to make major changes (e.g., the point at which the entire font's main stems jump from 1 to 2 pixels wide) most of the way through development.Making a very well-hinted TrueType font remains a significant amount of work, despite the increased user-friendliness of programs for adding hints to fonts compared with the early 1990s. Many TrueType fonts therefore have only rudimentary hints, or have hinting automatically applied by the font editor, with variable end results.
Embedding protection
The TrueType format allows for the most basic type of
Digital rights management - an 'embeddable flag' that specifies if author allows embedding of the font file into things like .pdf files and websites. A simple tool exists to modify this flag [http://www.derwok.de/downloads/ttfpatch/]Font formats
TrueType Collection
TrueType Collection (TTC) is an extension of TrueType format that allows combining multiple fonts into a single file, creating substantial space savings for collection of fonts that only use different glyphs on some characters. They were first available in Chinese, Japanese, and Korean versions of Windows, and supported for all regions in Windows 2000 and later.
Mac OS included support of TTC starting with
Mac OS 8.5. In Mac OS, TTC has file type ttcf.File Formats
Basic
A basic font is composed of multiple tables specified in the header. A table name can have up to 4 letters.
In a TTC file, it contain a ttcf table that tells how many fonts are within the collection. Multiple fonts within a collection uses the same glyph table.
A regular TrueType font comes with .ttf extension, while a TTC comes with .ttc extension.
In Mac OS, it is one of several formats called data–fork fonts, as they lack the Mac resource fork.
uitcase
The suitcase format for TrueType is used on Mac OS. It adds additional Apple-specific information.
Like TTC, it can handle multiple fonts within a single file. But unlike TTC, those fonts need not be within the same family.
Suitcases come in resource–fork and data–fork formats. The resource-fork version was the original suitcase format. Data–fork-only suitcases, which place the resource fork contents into the data fork, were first supported in Mac OS X. A suitcase packed into the data–fork-only format has the extension "dfont".
PostScript
In the
PostScript language, TrueType outlines are handled with a PostScript wrapper as Type 42 for name-keyed, or Type 11 for CID-keyed fonts.References
ee also
*
FreeType
*Cleartype
*Typography
*Typeface
*PostScript
*OpenType
*Unicode ,UTF-8 , Unicode fonts.
*Uniscribe (Windows multilingual text rendering engine)
*Apple Type Services for Unicode Imaging (New Macintosh multilingual text rendering engine)
*WorldScript (Old Macintosh multilingual text rendering engine)
*Pango (Open source multilingual text rendering engine)External links
* [http://www.microsoft.com/typography/specs/default.htm TrueType specification (Microsoft)]
* [http://developer.apple.com/fonts/TTRefMan/index.html TrueType specification (Apple)]
* [http://www.truetype-typography.com TrueType Typography] – independent info site
Wikimedia Foundation. 2010.