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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Can we add custom font (.ttf type) in Power BI desktop

Hi Experts,

 

I am trying to add font types which belongs to same font family, in Power BI Desktop. These font types are of type .ttf and stored in la ocal folder.

 

Please let me know how can I apply these fonts to my Power BI file.

 

Thanks.

 

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

Please refer to the demo below. We can assign the customized settings for each visual. I assigned different "font family" for the Table visual and the Matrix visual. 

{
    "name": "Green",
    "dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"],
    "background":"#FFFFFF",
    "foreground": "#3A6108",
    "tableAccent": "#568410",
    "visualStyles":{
        "tableEx": {
            "*": {
                "*":  [{
                        "fontFamily": "simsong"
                    }]
            }
        },
        "pivotTable": {
            "*": {
                "*":  [{
                        "fontFamily": "Arial Black"
                    }]
            }
        }
    }
}

Can-we-add-custom-font-ttf-type-in-Power-BI-desktop

 

Best Regards,
Dale

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

View solution in original post

8 REPLIES 8
Bimbam
Regular Visitor

Five years later and the solution to something as basic as "Adding fonts" to something that claims to be an enterprise-grade solution remains a hack!

v-jiascu-msft
Employee
Employee

Hi @Anonymous,

 

If Windows doesn't have the font, you can install it first. Then apply a theme to the Desktop. Please refer to desktop-report-themes.

 

{
    "name": "Green",
    "dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"],
    "background":"#FFFFFF",
    "foreground": "#3A6108",
    "tableAccent": "#568410",
    "visualStyles":{
        "*": {
            "*": {
                "*":  [{
                        "fontFamily": "simsong"
                    }]
            }
        }
    }
}

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-jiascu-msft

 

Thanks for your reply.

 

Please let me know if we can add multiple font families to one Theme JASON file.

 

 

Hi @Anonymous,

 

Yes, you can. Please refer to desktop-report-themes#report-theme-json-file-format for details. You would change the "*" to the proper parts you'd like to customize in my last demo code. 

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Dale,

 

Thanks for your help. Do you mean by this :

 

{
    "name": "Green",
    "dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"],
    "background":"#FFFFFF",
    "foreground": "#3A6108",
    "tableAccent": "#568410",
    "visualStyles":{
        "*": {
            "*": {
                "*":  [{
                        "fontFamily": "simsong"
                    }]

 

                   [{
                        "fontFamily": "abco"
                    }]
            }

-------------------------------

OR

 

{
    "name": "Green",
    "dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"],
    "background":"#FFFFFF",
    "foreground": "#3A6108",
    "tableAccent": "#568410",
    "visualStyles":{
        "*": {
            "*": {
                "*":  [{
                        "fontFamily": ["simsong","abco"]
                    }]

 

                  }

 

I have tried both codes, but giving error.

 

Please advise.

Many Thanks.

 

Hi @Anonymous,

 

Please refer to the demo below. We can assign the customized settings for each visual. I assigned different "font family" for the Table visual and the Matrix visual. 

{
    "name": "Green",
    "dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"],
    "background":"#FFFFFF",
    "foreground": "#3A6108",
    "tableAccent": "#568410",
    "visualStyles":{
        "tableEx": {
            "*": {
                "*":  [{
                        "fontFamily": "simsong"
                    }]
            }
        },
        "pivotTable": {
            "*": {
                "*":  [{
                        "fontFamily": "Arial Black"
                    }]
            }
        }
    }
}

Can-we-add-custom-font-ttf-type-in-Power-BI-desktop

 

Best Regards,
Dale

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

I uploaded the file and it worked on my machine ... I created the web link ... but on a machine that doesn't have the font installed it goes back to New roan teams ... how to make the font work on any machine (link web) without necessarily having to install the font?

Thanks

Anonymous
Not applicable

Hi @v-jiascu-msft

 

Many thanks for this reply. It worked 🙂

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.