cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper V
Helper V

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 @ShanayaK,

 

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

7 REPLIES 7
Microsoft
Microsoft

Hi @ShanayaK,

 

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.

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 @ShanayaK,

 

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.

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 @ShanayaK,

 

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

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

Hi @v-jiascu-msft

 

Many thanks for this reply. It worked 🙂

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors