1
0
mirror of https://github.com/google/fonts.git synced 2024-12-17 21:51:52 +03:00
fonts/knowledge/glossary/terms/hinting/content.md
2021-12-07 09:28:03 -10:00

1.4 KiB
Raw Blame History

Hinting is the process of including programmatic data in a font file to help text rendering software represent a typeface legibly at small sizes, on low-resolution screens.

“Aa” set in a sans serif typeface, placed in the background, with a pixelated version overlaid in the foreground. This pixelated version represents the “hints” given to the software.

Until recently, with the arrival of high-resolution displays, hinting was a considerable concern when working with type on screen. 72dpi monitors were incapable of rendering the subtleties of type at small sizes, and hinting instructions were required to offer the rasterizer “hints” about which pixels to draw the type on.

Anti-aliasing technology improved the look of this rendering by allowing the software to define whether a pixel would be on (0; i.e., black), off (255; i.e., white), or any value in between. These grey pixels would soften the harshness of the black and white bitmaps. A similar technology called subpixel antialiasing allowed for only part of the pixel (the red, blue, or green component) to be turned on, thus achieving a similar effect with color.

Including hinting instructions within a font is generally recommended; however, because of the ubiquity of hi-res displays, its less of a concern today than it once was.