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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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