Issue #1622💬 AnsweredOpened November 30, 2018by deviserops0 reactions

Default selected font issue for custom font in the Typography.

Quick answerby jrking4

I ended up using something like the following to have Lato as a custom font and set it as my default font: this way Lato is checked by default. And of course have the body CSS declare it as your default font as well.

Read full answer below ↓

Question

There is one font issue when i click on any element it not show the current font of the element, i added custom code for add my custom fonts. code work perfectly but it not show the selected font by default when i select an paragraph or any text.

Answers (3)

jrking4• December 21, 2018

I ended up using something like the following to have Lato as a custom font and set it as my default font: this way Lato is checked by default. And of course have the body CSS declare it as your default font as well.

artf• December 27, 2018

The problem here is the computed font of the selected component. You need to have that computed font inside your list otherwise you won't see it. As already suggested by @jrking4 you can set your default font-family to the body

deviserops• December 28, 2018

i found the answer : you have to add your font in single or double quotes otherwise it wont detect the font like this because we write font in our css like : font-family: 'Oswald' html in browse auto convert single quotes to double quotes, when the font match with html and included font in JS it wi...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.