PeachPDF

PeachPDF.PdfGenerateConfig

PdfGenerateConfig.TextHinting Property

Whether the text PeachPDF draws into a bitmap (see RasterizationDpi) is fitted to the pixel grid by the font’s own hinting. Defaults to None, so output does not change unless it is asked for.

public PeachDrawing.Core.TextHinting TextHinting { get; set; }

Property Value

TextHinting

Remarks

It helps text set small at a low RasterizationDpi, where pixels are big enough to see. It never affects the PDF’s own text, which is the embedded font. It is used for a piece of text only when that text is drawn without rotation, skew or perspective (hinting is meaningless under them), and only for fonts with TrueType instructions or CFF outlines, and at sizes where the font’s own gasp table (if it has one) asks for grid-fitting; anything else is drawn unhinted. Layout is never affected: measurements and line breaks use the unhinted metrics, so turning hinting on cannot move a line break.