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
Grasmachien
Frequent Visitor

Use custom font in embedded report

Hi everyone,

We are currently building a report for a client and are embedding it so all clients can access it via a service principal.

The client has their own house style and fonts.

How can we add a custom font to the embedded report?

2 REPLIES 2
Grasmachien
Frequent Visitor

Hi @v-eqin-msft ,

We already have a JSON theme for the report so that should be no issue.
The font we are trying to use is called "Nunito".
From what I can see in the documentation and in the video your provided we should just add the font name in the JSON theme. But how does PowerBI know which font file to send with the embedded report?

This is an example of what we tried but did not work:

"textClasses":{
"label":{
"fontFace":"Nunito Regular",
"color":"#4C5B78"
},
"callout":{
"fontFace":"Nunito SemiBold",
"color":"#4C5B78",
"fontSize":18
},
"title":{
"fontFace":"Nunito SemiBold",
"color":"#4C5B78",
"fontSize":10
},
"header":{
"fontFace":"Nunito SemiBold",
"color":"#4C5B78"
}
}

v-eqin-msft
Community Support
Community Support

Hi @Grasmachien ,

 

I suggest you to add a JSON theme in Power BI Desktop to use custom font then publish your report to Service and embed it for your customer.

For reference:

Use report themes in Power BI Desktop - Power BI | Microsoft Learn

You can refer to this video to learn the steps about how to create a JSON theme for custom font.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Top Kudoed Authors