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
Anonymous
Not applicable

Import Multiple Extra Font Families to Power BI Theme

Hi,

 

I have worked out how to add one extra custom font (our Brand's) to our Power BI Theme. But we have two that we use and I can't figure out how to add both so the appear in the dropdown list of fonts for any visual?

 

Here is what I am using for one font:

 

{
    "name": "Custom Theme",
	"dataColors": ["#3d4549", "#f9fafa", "#9ea2a4", "#ced0d2", "#f7ff1a", "#ff3838", "#00ccff", "#2aec2a"],
	"background":"#FFFFFF",
    "foreground": "#0c161c",
    "tableAccent": "#0c161c",
    "visualStyles":{"*":{"*":{"*":[{"fontSize":12,"fontFamily":"DAZN Trim","color":{"solid":{}}}]}}}
}

 

Any ideas?

 

Much appreciated,

 

Benji

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Anonymous 

I think a custom theme can only support 1 base font but you can specify different fonts for each visual thereby allowing you to mix fonts in the theme, like so

{
    "name": "Custom Theme",
	"dataColors": ["#3d4549", "#f9fafa", "#9ea2a4", "#ced0d2", "#f7ff1a", "#ff3838", "#00ccff", "#2aec2a"],
	"background":"#FFFFFF",
    "foreground": "#0c161c",
    "tableAccent": "#0c161c",
    "visualStyles":{
            "tableEx": {
                "*": {
                    "*": [
                        {
                            "fontFamily": "Abadi"
                        }
                    ]
                }
            },
            "pivotTable": {
                "*": {
                    "*": [
                        {
                            "fontFamily": "Arial Black"
                        }
                    ]
                }
            },
         
        "*":{"*":{"*":[{"fontSize":12,"fontFamily":"DAZN Trim","color":{"solid":{}}}]}}}
}

Refer to

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

Solved: Can we add custom font (.ttf type) in Power BI des... - Microsoft Power BI Community 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @Anonymous 

I think a custom theme can only support 1 base font but you can specify different fonts for each visual thereby allowing you to mix fonts in the theme, like so

{
    "name": "Custom Theme",
	"dataColors": ["#3d4549", "#f9fafa", "#9ea2a4", "#ced0d2", "#f7ff1a", "#ff3838", "#00ccff", "#2aec2a"],
	"background":"#FFFFFF",
    "foreground": "#0c161c",
    "tableAccent": "#0c161c",
    "visualStyles":{
            "tableEx": {
                "*": {
                    "*": [
                        {
                            "fontFamily": "Abadi"
                        }
                    ]
                }
            },
            "pivotTable": {
                "*": {
                    "*": [
                        {
                            "fontFamily": "Arial Black"
                        }
                    ]
                }
            },
         
        "*":{"*":{"*":[{"fontSize":12,"fontFamily":"DAZN Trim","color":{"solid":{}}}]}}}
}

Refer to

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

Solved: Can we add custom font (.ttf type) in Power BI des... - Microsoft Power BI Community 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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.