Custom fonts (the Google Fonts plugin)

Custom fonts (the Google Fonts plugin)

The builder ships a custom Google Fonts picker so page authors can install and use any Google Font without touching CSS. This article covers setup and use. For the broader styling system see Styling and branding.

Set up the API key

The picker calls the Google Fonts Developer API from the builder, so it needs your own Google Fonts API key.

  1. Create a Google Fonts Developer API key in your Google Cloud project. Restrict it to the Google Fonts API and to your org and Site domains.
  2. Enter it in the Portal__c custom setting field Google_Fonts_API_Key__c (Setup, Custom Settings, Portal).
  3. Reopen the builder.

If the key is missing, the picker shows an error when it opens, so a blank key surfaces immediately rather than failing silently.

How to use it

  1. Open a page in the builder.
  2. Click Install Fonts (the A/font icon button) in the top options panel. The Fonts dialog opens.
  3. The dialog has two sections:
    • All fonts: the full Google Fonts catalogue, searchable by name, filterable by category, paginated. Each row shows a live preview of the font.
    • Installed fonts: the fonts you have added to this page, with per weight and per style (italic) variant checkboxes, a toggle all, and a remove button.
  4. Click a font to install it. It moves to the Installed list and becomes available immediately.
  5. Select any element on the canvas, open the style (typography) panel, and pick your installed font from the font family dropdown. Installed fonts are appended to the built in font list there.
  6. Save the page. The chosen fonts are baked into the published page (see persistence below), so they load on the live portal.

How fonts are applied

Two things happen when a font is installed:

How fonts persist and load at runtime

AI copilot integration

The AI page builder can list, install and remove fonts, so it can install or swap fonts as part of generating or editing a page. See The AI page builder.

Notes and limits