Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
DavidAtkins
Frequent Visitor

Issue with custom font in titles (JSON file)

Hi

 

I'm having trouble when importing a custom font using a JSON file. Using the code below I've managed to get the Lato Light font to work for certain parts of the report (e.g. values and axis titles) but it doesn't seem to work for visual titles:

 

{"name":"Custom","visualStyles":{"*":{"*":{"*":[{"fontFamily":"Lato Light"}]}}}}

 

When I look at the Title of a visual it doesn't give Lato Light as an option:

 

Untitled.jpg

But when I look at, say, the Values of the visual, it has pulled Lato Light through (although it doesnt actually show in the drop-down for some reason):

Screenshot 2022-09-29 102526.jpg

Any help would be appreciated

 

NB i've also used this code but get the same issue:

{"name":"Custom","textClasses":{"label":{"fontFace":"Lato Light"},"callout":{"fontFace":"Lato Light"},"title":{"fontFace":"Lato Light"},"header":{"fontFace":"Lato Light"}}}

2 REPLIES 2
amitchandak
Super User
Super User

@DavidAtkins , Can you download the theme file and share it to check?

 

Also refer this video - https://www.youtube.com/watch?v=H-HuBXB4ahc

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak 

Thanks for the reply - The files are literally just the code that I put in the original request.

 

I've actually found a work around - if I reset the titles to default and load the theme then the font comes through. I'm guessing that if the font has been previously changed from the default then loading the theme won't over-ride the previous selection. It's not ideal but I guess it'll work for now.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors