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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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