Skip to content

@shbernal/pptxgenjs


@shbernal/pptxgenjs / index / TextFitShrinkProps

Interface: TextFitShrinkProps

Defined in: core-interfaces.ts:1743

Properties

fontScale?

optional fontScale?: number

Defined in: core-interfaces.ts:1756

Font scale as a percent (0-100), mapped to <a:normAutofit fontScale="..">.

PowerPoint normally calculates this dynamically when text overflows; set it explicitly to bake the scale into the generated file.

Example

ts
85 // render text at 85% of its nominal size

Default

ts
undefined // attribute omitted (PowerPoint defaults to 100%)

lnSpcReduction?

optional lnSpcReduction?: number

Defined in: core-interfaces.ts:1762

Line-space reduction as a percent (0-100), mapped to <a:normAutofit lnSpcReduction="..">.

Example

ts
20 // reduce line spacing by 20%

Default

ts
undefined // attribute omitted (PowerPoint defaults to 0%)

type

type: "shrink"

Defined in: core-interfaces.ts:1747

Shrink text on overflow (<a:normAutofit>)