‘Smooth’ hintingįundamentally, there are two approaches to hinting. Good visual results are also seen in recent MacOS X versions and GNU/Linux systems (including Android, ChromeOS, and other mobile operating systems) that use FreeType for rendering glyphs. This is the default for Windows 7 and higher. As a result, you get better rendering results with web browsers, for example.Īcross Windows rendering environments today, fonts processed with ttfautohint look best with ClearType enabled. The simple interface of the front-ends (both on the command line and with the GUI) allows quick hinting of a whole font with a few mouse clicks or a single command on the prompt. Internally, the auto-hinter’s algorithm resembles PostScript hinting methods it thus combines all three hinting methods discussed previously. Roughly speaking, it converts the glyph analysis done by FreeType’s auto-hinting module to TrueType bytecode. The ttfautohint library brings the excellent quality of FreeType rendering to platforms that don’t use FreeType, yet require hinting for text to look good – like Microsoft Windows. Given that the number of specialists for TrueType hinting is very limited, hinting a large set of glyphs for a font or font family can become very expensive. It is very time consuming to manually hint glyphs. Here an example how such code looks like: SVTCAĪnother major obstacle is the fact that font designers usually aren’t programmers. They are comparable to assembler code, thus lacking all high-level concepts to make programming more comfortable. TrueType instructions form a programming language, operating at a very low level. While it is relatively easy to specify PostScript hints (either manually or by an auto-hinter that works at font creation time), creating TrueType hints is far more difficult. What problems can arise with TrueType hinting? This is how FreeType’s auto-hinter works see below for more. No hints in the font are used or needed instead, the rasterizer scans and analyzes the glyphs to apply corrections by itself. The hinting logic is completely in the rasterizer. The hinting logic is in the font ideally, all rasterizers simply process these instructions to get the same result on all platforms. The font contains exact instructions (also called bytecode) on how to move the points of its outlines, depending on the resolution of the output device, and which intentionally distort the (outline) shape to produce a well-rasterized result. This is how PostScript Type 1 and CFF hints work. More sophisticated rasterizers are able to produce better rendering results. The hinting logic is partly in the font and partly in the rasterizer. The font contains hints (in the original sense of this word) to guide the rasterizer, telling it which shapes of the glyphs need special consideration. In general, there are three possible ways to hint a glyph. It can be accompanied by antialiasing and (on liquid crystal displays) subpixel rendering for further clarity.įor optimal results, a font instructor should follow these guidelines:Īt small sizes, chance effects should not be allowed to magnify small differences in the original outline design of a glyph.Īt large sizes, the subtlety of the original design should emerge. At low screen resolutions, hinting is critical for producing a clear, legible text. What exactly are hints?įont 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. The library has a central API function, TTF_autohint, which is described below.īundled with the library there are two front-end programs, ttfautohint and ttfautohintGUI, being a command line program and an application with a Graphics User Interface (GUI), respectively. The idea is to provide the excellent quality of the auto-hinter on platforms that don’t use FreeType. Ttfautohint is a library written in C that takes a TrueType font as the input, removes its bytecode instructions (if any), and returns a new font where all glyphs are bytecode hinted using the information given by FreeType’s auto-hinting module. Ttfautohint Werner Lemberg Version 1.8.4 Introduction
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |