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

Importing MULTIPLE Fonts in Power BI?

I am trying to import the Assistant font.

 

However, when I do so, I only have the option of "Assistant" and not its various styles.

 

For example: "Assistant-Bold", "Assistant-ExtraBold", "Assistant-ExtraLight", "Assistant-Light", "Assistant-Medium", "Assistant-Regular", "Assistant-SemiBold".

 

I am using the JSON object below to import my custom theme.

 

{"name":"Custom","dataColors":["#8285D8","#1F1F29","#EBEBEB","#F8F8F8","#08080F", "#013E61", "#41007B"],"visualStyles":{"*":{"*":{"*":[{"fontFamily":"Assistant", "color":{"solid":{}}}]}}}}

 

Can someone help me with being able to import these multiple fonts?

3 REPLIES 3
V-pazhen-msft
Community Support
Community Support

@jamestieu 
You can only assign the customized font for each visual. 
Solved: Can we add custom font (.ttf type) in Power BI des... - Microsoft Power BI Community

 

Or you can watch this video explanied in detail:

How to add custom fonts (.ttf) in Power BI and limitations - YouTube

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

selimovd
Super User
Super User

Hey @jamestieu ,

 

the fonts in your JSON have to have the identical name like in the folder C:\Windows\Fonts

If you have multiple font files (for example "Assistant-Bold.ttf", "Assistant-ExtraBold.ttf", "Assistant-ExtraLight.ttf", etc.), then you have to add all of them to your JSON file.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

 

Hi Den,

 

I tried something like this:

{"name":"Custom","dataColors":["#8285D8","#1F1F29","#EBEBEB","#F8F8F8","#08080F", "#013E61", "#41007B"],"visualStyles":{"*":{"*":{"*":[{"fontFamily":"Asssitant-Light.ttf, Assistant-Bold.ttf", "color":{"solid":{}}}]}}}}

But then I got this:

jamestieu_0-1624988697956.png

 

I also tried this:

{"name":"Orkestra","dataColors":["#8285D8","#1F1F29","#EBEBEB","#F8F8F8","#08080F", "#013E61", "#41007B"],"visualStyles":{"*":{"*":{"*":[[{"fontFamily":"Asssitant-Light.ttf", "color":{"solid":{}}}], [{"fontFamily":"Asssitant-Bold.ttf", "color":{"solid":{}}}]]}}}}

 

You will see a multi-level list of font-families in the object:

[[{"fontFamily":"Asssitant-Light.ttf", "color":{"solid":{}}}], [{"fontFamily":"Asssitant-Bold.ttf", "color":{"solid":{}}}]]

 

 

It imported successfully, but none of the fonts are available to use.

 

Can you help?

 

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.