Skip to main content
Adjust text size for emphasis and readability. Select text and apply different sizes. Supports pt, px, em, and rem units with automatic min/max clamping.

OOXML Structure

Use case

  • Visual hierarchy - Different sizes for headers, body, and footnotes
  • Emphasis - Larger text draws attention without bold
  • Readability - Adjust size for screen distance and user preference
  • Professional documents - Match specific formatting requirements

Options

Configure the extension behavior:
Array<string>
default:"['textStyle','tableCell']"
Node/mark types to add font size support to
FontSizeDefaults
Default size configuration

Attributes

Node attributes that can be set and retrieved:
FontSizeValue
Font size with unit

Commands

setFontSize

Set font size
Automatically clamps to min/max values
Example:
Parameters:
FontSizeValue
required
Size to apply (with optional unit)

unsetFontSize

Remove font size
Reverts to default document size
Example:

Types

FontSizeDefaults

Font size configuration

FontSizeValue

Size with optional unit (e.g., ‘12pt’, ‘16px’, 14)

Source code