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.
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:
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):
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"}}}
@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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |