AggPas - Anti-Grain Geomertry for Object Pascal

TAgg2D.TextHints(hints)

Description

Changes the status of text hinting for the current font.

Text hinting (also called Grid Fitting) is a technique of proper glyph rendering to the target resolution surface, which needs the scaled outline points to be aligned along the target device pixel grid. Hinting depends on the target width and height in pixels (it is highly resolution-dependent and that makes correct WYSIWYG layouts difficult to implement).

Parameters

hints: boolean

Defines whether text hinting is to be used or not.

Example

Try to play with following example. Checking and unchecking the ”Hinting“ checkbox changes the grid fitting on the fly, so you can see how hinter influences the resulting shape of glyphs. Also resizing the form proportionally zooms the text.

Screenshot: example

Example download:
tagg2d_example50.zip
tagg2d_example50.exe