Select font while creating a topic

I looked for threads that had already discussed this topic, but didn’t find anything specific…

Is there a plugin or a simple way to choose a font when writing text? If not, how feasible would it be to add such an option? I’d appreciate any response!

Hi there, this is relatively easy to do using a theme component. Just create one and add as many fonts you’d like in the CSS section.

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@100..900&display=swap");

.d-wrap[data-wrap="inter"] {
    font-family: "Inter", sans-serif;
}

.d-wrap[data-wrap="oswald"] {
    font-family: "Oswald", sans-serif;
}

[wrap="inter"]hello from inter[/wrap]
[wrap="oswald"]hello from oswald[/wrap]

Thank you for answering! I will try for sure!

However, if I would like to have a dropdown menu with fonts, I will need to create a plugin for that?

You can use JavaScript in the same component. It’s a bit more involved (using apiInitializer, api.addComposerToolbarPopupMenuOption, etc) but it can be done if you’re willing to put some time into it