Atrium — shared contracts and the typesetting engine
    Preparing search index...

    Interface FontSpacing

    The interword glue for a face, from TeX's \fontdimen 2, 3, 4 and 7.

    Computer Modern — and Latin Modern after it — sets these to exactly space, space/2, space/3 and space/3. We take space by measuring U+0020 in the face itself and derive the rest, because the font layer exposes glyph metrics rather than TeX's \fontdimen array.

    A space is glue, not a glyph. FontHandle.shape will happily give you a space glyph with a fixed advance and no flex; a paragraph built that way can never be justified. Shape the words, put one of these between them.

    interface FontSpacing {
        extraSpace: number;
        shrink: number;
        space: number;
        stretch: number;
    }
    Index
    extraSpace: number

    \fontdimen7, added after a sentence unless \frenchspacing.

    shrink: number

    \fontdimen4, how far it shrinks.

    space: number

    \fontdimen2, the natural interword space.

    stretch: number

    \fontdimen3, how far it stretches.