Rich Content Formatting

Custom Fonts Macro

Custom Fonts Macro

Custom Fonts Macro screenshot

What It Does

The Custom Fonts macro lets you add a styled text block to any Confluence page. You type the text directly into the macro and control its font family, weight, size, color, alignment, and line height - all from the config panel. Use it to create visually distinct headings, section titles, or callout text that goes beyond Confluence's standard heading styles.

How to Set It Up

  1. Insert the Custom Fonts macro on your page
  2. In the Text field, type the text you want to display (required)
  3. Set the Alignment - Left, Center, or Right
  4. Under Typography, choose the Font Family, Font Weight, and drag the Font Size slider to the size you need
  5. Pick a Text Color from the preset swatches or use the custom color picker
  6. Optionally enable Set line height manually to control vertical spacing
  7. Publish the page

Configuration Options

SettingOptionsNotes
TextFree text inputRequired - this is the text that will be displayed
AlignmentLeft, Center, RightControls horizontal alignment of the text block
Font FamilyDropdown (e.g. Arial, and other available fonts)Selects the typeface for the text
Font WeightRegular, Bold, and other available weightsControls how thick or thin the text strokes appear
Font SizeSlider (px)Drag to set the exact size; displays the current value in px
Text ColorPreset color swatches + custom color pickerSets the text color
Set Line Height ManuallyToggle on / offWhen on, lets you enter a specific line height value

Common Use Cases

  • Custom page title: Add a large, styled heading at the top of a space home page or landing page
  • Section labels: Use a distinct font and color to mark major sections within a long page
  • Announcement text: Display a bold, center-aligned message at the top of an announcement page
  • Visual emphasis: Highlight a key statistic, quote, or call-to-action with a larger font size and a brand color