04.06.2013 Views

Glyphs-Handbook-2013

Glyphs-Handbook-2013

Glyphs-Handbook-2013

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.1.3 Custom Parameters<br />

Apart from the alignment zones and standard stems, there<br />

are more optional parameters in the Private Dictionary:<br />

blueScale, blueShift, and Family Alignment Zones. In <strong>Glyphs</strong>,<br />

you can set these values as Custom Parameters. For a detailed<br />

discussion of what they do, please see section 12.2, ‘Custom<br />

Parameters’ (p. 87).<br />

8.2 AUTOHINTING<br />

If the font-wide parameters are set properly, you can let the<br />

autohinting algorithm do its magic by simply activating the<br />

Autohint unhinted glyphs option in the export dialog. Test<br />

the hinting in an Adobe application. Write a test text and<br />

zoom out far enough so that the letters are displayed with a<br />

few pixels only. Then zoom in using the operating system’s<br />

zoom function, which you can activate in the Accessibility<br />

settings of the System Preferences. If necessary, tweak your<br />

font settings or manually hint a problematic glyph and reexport.<br />

For details on manual hinting, see section 8.3, ‘Manual<br />

hinting’ (p. 70).<br />

8.2.1 Flex hints<br />

If the font has cupped serifs or slightly tapered stems, the<br />

autohinter can automatically apply so-called flex hints. Flex<br />

hints suppress the display of such shallow curves at low<br />

resolutions. You cannot manually set flex hints, they are<br />

automatically applied when the font is exported. In order for<br />

flex hinting to kick in, a few conditions must be met.<br />

First the blueShift value must at least be set to the depth of<br />

your cups plus one. E.g., if your serifs are cupped 5 units deep,<br />

blueShift should be set to 6 or more.<br />

Secondly, there are a few outline requirements. The cup or<br />

tapering must be built from exactly two consecutive outline<br />

segments between three nodes. The segments do not need to<br />

be symmetrical. The first and third node must share the same<br />

x coordinate (for tapered stems) or the same y coordinate<br />

(for cupped serifs). The four handles need not be completely<br />

horizontal (serifs) or vertical (stems), but the three nodes must<br />

be placed on the extremes of the two segments. The overall<br />

depth must not exceed 20 units.<br />

Thirdly, in the case of cupped serifs, it is recommended that<br />

the three points are completely submerged in the respective<br />

<strong>Glyphs</strong> <strong>Handbook</strong>, May <strong>2013</strong> 69

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!