docx
    Preparing search index...

    Type Alias EstimatePageNumbersOptions

    How estimatePageNumbersWith lays out the pages.

    type EstimatePageNumbersOptions = {
        fonts?: readonly FontFile[];
        measureWidth?: MeasureWidth;
    }
    Index
    fonts?: readonly FontFile[]

    Font files to measure text in, with their own widths, kerning and line heights, as Word measures it. Give a file for each of a font's faces the document uses, such as Aptos, Aptos Bold and Aptos Italic: text in fonts without files is measured as it is without them, and so is bold text, or text that isn't bold, in a font without a file for it. Italic text in a font without an italic file is measured with the upright one. The layout stops at a character a font's file has no glyph for, as Word draws it in another font

    measureWidth?: MeasureWidth

    Measures how wide text is, such as measureWithPretext, which measures it with the fonts a browser has. Default is the widths of the fonts Word documents use most, which estimatePageNumbers uses. Lines still break, and tabs move to their stops, as Word lays them out, and lines are as tall as Word makes them.