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

    Interface HyphenateOptions

    interface HyphenateOptions {
        hyphenateFont?: (font: FontHandle, size: number) => boolean;
        hyphenator?: Hyphenator;
        hyphenPenalty?: number;
        shaper?: Shaper;
    }
    Index
    hyphenateFont?: (font: FontHandle, size: number) => boolean

    Whether a face may be hyphenated at all. TeX asks the same question as \hyphenchar\font < 0, and plain.tex answers "no" for typewriter type — a hyphen in \texttt reads as part of the code. The engine's font layer has no \hyphenchar, so the document stage supplies the predicate.

    hyphenator?: Hyphenator
    hyphenPenalty?: number

    \hyphenpenalty, plain TeX's 50.

    shaper?: Shaper