Appearance
@shbernal/pptxgenjs / index / TextFitShrinkProps
Interface: TextFitShrinkProps
Defined in: core-interfaces.ts:1743
Properties
fontScale?
optionalfontScale?: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 sizeDefault
ts
undefined // attribute omitted (PowerPoint defaults to 100%)lnSpcReduction?
optionallnSpcReduction?: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>)