Skip to main content
Skip table of contents

(v13) Hinting in the pluggable font API

This page applies to Harlequin v13.1r0 and later; both Harlequin Core and Harlequin MultiRIP

The sw_pfin_font supplied to the module in the outline call contains the width and height of a device pixel in glyph coordinates. It is highly recommended for small font sizes or low device resolutions that the module use this to better fit the glyph outline to the pixel grid. A common approach is to snap stem edges to a pixel edge and ensure that all stems of a particular orientation are the same width.

Ensuring that key coordinates are integer multiples of the pixel size is one approach. This can also be used to ensure that the counters of double-countered characters, such as “m”, “B” and “8” are equal sized, if that is what the designer intends.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.