Skip to content

@shbernal/ts-pptx


@shbernal/ts-pptx / index / TextFitShrinkProps

Interface: TextFitShrinkProps

Defined in: src/types/text.ts:314

Properties

fontScale?

optional fontScale?: number

Defined in: src/types/text.ts:327

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: src/types/text.ts:333

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: src/types/text.ts:318

Shrink text on overflow (<a:normAutofit>)