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.

A typical alignment zone<br />

setup: top zones with positive<br />

widths at ascender, cap<br />

height and x-height; bottom<br />

zones with negative widths<br />

at baseline and descender.<br />

More precisely, the maximum<br />

size of an alignment zone is<br />

constrained by the blueScale<br />

value (see below), which implies<br />

that no zone must be larger<br />

than 240 ÷ (240 × blueScale – 0.98).<br />

height, i.e., use the same amount of pixels vertically. The same<br />

applies to ascenders of letters like f, h, or k, descenders of g,<br />

p or y, and the heights of all capital letters. And of course, all<br />

letters should share the same baseline when pixellated at a<br />

low resolution.<br />

But all these letters usually do not really align precisely.<br />

For instance, the bottom of a lowercase o will extend slightly<br />

below the baseline, while the serifs of an n may sit exactly<br />

on it. Or the apex of an uppercase A may extend a little bit<br />

beyond the height of an uppercase H. This dierence, usually<br />

some ten units, is commonly referred to as ‘overshoot’.<br />

Alignment zones are a way to tell the rasterizer about the<br />

overshoots. Anything with a valid horizontal hint that<br />

reaches into the same alignment zone will be aligned at low<br />

resolutions. In other words, the overshoots will be suppressed<br />

in small pixel sizes.<br />

Alignment zones take two values: a position and a size.<br />

The position is the vertical height of the zone, usually the<br />

vertical metrics, like x-height or ascender. The position is<br />

sometimes also referred to as the ‘flat edge’ of a zone. The size<br />

is the thickness of the maximum overshoot that may appear<br />

at that position. If the overshoot extends above the position<br />

(e.g., x-height, cap height, ascender), the size value must be<br />

positive. Such zones are referred to as ‘top zones’. If, however,<br />

the overshoots extend below the position (e.g., baseline,<br />

descender), the size must be negative and we call them<br />

‘bottom zones’.<br />

Alignment zones should be as small as possible, so do not<br />

try to make them larger ‘to be on the safe side’. In any event,<br />

a zone must not be larger than 25 units. You can have a<br />

maximum of 5 top zones and 6 bottom zones. Zones must<br />

not overlap. There must be a minimum distance of one unit<br />

between them.<br />

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

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

Saved successfully!

Ooh no, something went wrong!