cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ShanayaK Regular Visitor
Regular Visitor

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

Accepted Solutions
Community Support Team
Community Support Team

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

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.
6 REPLIES 6
Community Support Team
Community Support Team

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

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.
ShanayaK Regular Visitor
Regular Visitor

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

Hi @v-jiascu-msft

 

Thanks for your reply.

 

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

 

 

Community Support Team
Community Support Team

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

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.
ShanayaK Regular Visitor
Regular Visitor

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

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.

 

Community Support Team
Community Support Team

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

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.
ShanayaK Regular Visitor
Regular Visitor

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

Hi @v-jiascu-msft

 

Many thanks for this reply. It worked :-)