Google Tag Manager

Forum Discussion

MMarshall17's avatar
MMarshall17
Collaborator
5 months ago

Fallback Font Selection in Drag-and-Drop Style Settings

I'd like to see a feature in Drag-and Drop Style Settings that allows us to bypass the fallback font options and go straight to Sans-serif/Serif default system fonts. 

1 Reply

Replies have been turned off for this discussion
  • That’s a good idea, and I hope Braze will add it to the editor in the future.
    In the meantime, you can achieve this yourself with a bit of CSS. It’s less convenient than selecting it via drag & drop, but if the visual styling is really important, this is a solid option.

    You can insert an HTML block that only contains a <style> tag.
    There are two classes related to text blocks:
    • bz_title
    • bz_text

    You can use them to set the font-family manually and override the default settings.

    For example:

    <style>
      .bz_text {
        font-family: 'Assistant-Bold.ttf:669926d2f78ac800', sans-serif !important;
      }
    </style>

    In this example, Assistant-Bold.ttf is the custom font I selected. Make sure you copy the exact font name that appears in your setup.

    If this interests you and you’d like more details, I’d be happy to explain further.