Hinting
   HOME

TheInfoList



OR:

Font hinting, also known as instructing, is the use of mathematical instructions to adjust the display of an outline font so that it lines up with a rasterized grid. At low screen resolutions, hinting is critical for producing clear, legible text. It can be accompanied by antialiasing and (on
liquid crystal display A liquid-crystal display (LCD) is a flat-panel display or other Electro-optic modulator, electronically modulated optical device that uses the light-modulating properties of liquid crystals combined with polarizers to display information. Liq ...
s) subpixel rendering for further clarity.


Overview

For the purpose of on-screen text display, font hinting designates which primary pixels are interpolated to more clearly render a
font In metal typesetting, a font is a particular size, weight and style of a ''typeface'', defined as the set of fonts that share an overall design. For instance, the typeface Bauer Bodoni (shown in the figure) includes fonts " Roman" (or "regul ...
. Hints are usually created in a font editor during the typeface design process and embedded in the font. A font can be hinted either automatically (through processed algorithms based on the character outlines) or set manually. Most font editors are able to do automatic hinting, and this approach is suitable for many fonts. However, high-quality commercial fonts are often manually hinted to provide the sharpest appearance on computer displays. Verdana is one example of a font that contains a large amount of hinting data, much of which was accomplished manually by type engineer Tom Rickner.


Implementations

In the
TrueType TrueType is an Computer font#Outline fonts, outline font standardization, standard developed by Apple Inc., Apple in the late 1980s as a competitor to Adobe Inc., Adobe's PostScript fonts#Type 1, Type 1 fonts used in PostScript. It has become the ...
font format, released in 1991 by
Apple Inc Apple Inc. is an American multinational corporation and technology company headquartered in Cupertino, California, in Silicon Valley. It is best known for its consumer electronics, software, and services. Founded in 1976 as Apple Computer ...
, hinting invokes tables of font data used to render fonts properly on screen. One aspect of TrueType hinting is '' grid-fitting'', which modifies the height and width of font characters to line up to the set pixel grid of screen display. The open-source FreeType 2 font rendering engine uses an auto-hinter when such hinting data are not present or their use is restricted by a
software patent A software patent is a patent on a piece of software, such as a computer program, library, user interface, or algorithm. The validity of these patents can be difficult to evaluate, as software is often at once a product of engineering, something ...
. As of 2011, the FreeType website states that the relevant font hinting patents have now all expired, and hinting is now enabled in FreeType by default.


Guidelines

According to the TrueType Reference Manual, font instructors (those performing font hinting) must balance the following two constraints when hinting a font: * At small sizes, chance effects should not be allowed to magnify small differences in the original outline design of a glyph. * At large sizes, the subtlety of the original design should emerge. The reference manual suggests that, for screen viewing, fonts should be readable at 9 pixels per em at 72
pixels per inch In digital imaging, a pixel (abbreviated px), pel, or picture element is the smallest addressable element in a raster image, or the smallest addressable element in a dot matrix display device. In most digital display devices, pixels are the sma ...
. Particular attention should be paid to the
cap height In typography, cap height is the height of a capital letter above the baseline for a particular typeface A typeface (or font family) is a design of Letter (alphabet), letters, Numerical digit, numbers and other symbols, to be used in printing ...
, x-height, and baseline, so that the font retains its normal character while not producing exaggerated effects at small sizes.


High-DPI displays

With the advent of high-DPI displays (generally considered to be displays with more than 300 pixels per inch), font hinting has become less relevant, as aliasing effects become un-noticeable to the human eye. As a result Apple's Quartz text renderer, which is targeted for Apple's Retina displays, now ignores font hint information completely.


See also

* Kell factor


References


External links

*
An online font hinting tool
*
The Raster Tragedy at Low-Resolution Revisited: Opportunities and Challenges beyond "Delta-Hinting"
'. Beat Stamm. March 2011. A revised and extended version of th
original 1998 article
covering anti-aliasing including sub-pixel rendering, opportunities made possible by anti-aliasing, challenges in the rasterizer and elsewhere, and a discussion of font hinting in the context of these opportunities and challenges.


Tutorial on the DejaVu font wiki


Article from the Anti-Grain Geometry Project. {{DEFAULTSORT:Font Hinting Hinting