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.

Flex hints: Nodes 1 and 3 are<br />

on the same level and inside<br />

the alignment zone, node 2<br />

should be exactly on the flat<br />

edge of the zone. The handles<br />

must stay inside the space<br />

defined by nodes 1 through 3.<br />

alignment zone. For best results, the second node (in the<br />

middle) should be exactly on the position (the ‘flat edge’) of<br />

the zone.<br />

1 2 3<br />

baseline<br />

zone<br />

8.3 MANUAL HINTING<br />

Manual and automatic hinting cannot complement each other<br />

inside a single glyph. Any manually hinted glyph is excluded<br />

from the autohinting process. Thus, if you decide to add<br />

hints manually, you must fully hint the glyph. Caution: Hint<br />

replacement is currently not supported, so you must make<br />

sure that there are no overlapping hints. A vertical hint may<br />

overlap a horizontal hint, but a vertical hint cannot overlap<br />

another vertical hint, and a horizontal hint must not interfere<br />

with another horizontal hint.<br />

There are two types of glyph-level hints you can add<br />

manually, stem hints and ghost hints. Stem hints describe a<br />

vertical or a horizontal stem or stem-like feature of a glyph,<br />

like a serif or a crossbar. Ghost hints mark vertical edges when<br />

a horizontal stem hint cannot be applied.<br />

In combination with alignment zones, horizontal hints<br />

are important for the vertical alignment at the vertical font<br />

metrics, like the x-height or the ascender. At low resolutions,<br />

the rasterizer will try to vertically align the edges of all hinted<br />

horizontal stems that reach into an alignment zone. The<br />

horizontal hints must have their y coordinates in common<br />

with the nodes that are supposed to align. Since hints should<br />

not overlap one another, a single hint will do for all nodes it<br />

touches at its height.<br />

8.3.1 Stem Hints<br />

To add a stem hint to a glyph, right-click and choose Add<br />

Horizontal Hint or Add Vertical Hint from the context menu.<br />

A grey bar with a number badge will appear. The numbers<br />

indicate the origin (first number) and width (second number)<br />

of the hint. If you add a hint while two nodes are selected, the<br />

hint will be linked to these nodes right away. Adding linked<br />

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

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

Saved successfully!

Ooh no, something went wrong!