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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.