Custom Fonts in Power BI for all Visuals

Hi,
I want to set a custom font for all visuals in Power BI. I can do this for matrix and table but not so sure how to alter my JSON code to make the font available for all visuals.
My JSON code:

       {

“name”:“FEI”,
“dataColors”:[
#FCC000”,
#44546a”,
#C2C2C2”,
#c0d6df”,
#19566C”,
#8AD4EB”,
#FE9666”,
#A66999”,
#3599B8”,
#DFBFBF”,
#4AC5BB”,
#5F6B6D”,
#FB8281”,
],
“background”:"#FFFFFF",
“foreground”:"#4f6d7a",
“tableAccent”:"#4f6d7a",
“visualStyles”:{
“tableEx”: {
": {
"
”: [{
“fontFamily”: “Raleway”
}]
}
},
“pivotTable”: {
": {
"
”: [{
“fontFamily”: “Raleway-Light”
}]
}
}
}
}

How do I make this work for all visuals, please?
A sample file is attached:
SalesData_Correct.pbix (2.2 MB)
Thank you

Hi @upwardD.

I’ve not had successful experiences with custom fonts to date, but rather only with the list of fonts available in Power BI (I don’t see “Raleway”), so guess there may be issues with getting the “Raleway” font family to work.

Regardless, below is a JSON code block I used to change the default font to the “Segoe” family and blue colour while exploring custom themes recently; perhaps it will help.
Greg


"textClasses": {
    "callout": {
        "fontSize": 31,
        "fontFace": "Segoe UI (Bold)",
        "color": "#0000FF"
    },
    "title": {
        "fontSize": 14,
        "fontFace": "Segoe UI (Bold)",
        "color": "#0000FF"
    },
    "header": {
        "fontSize": 12,
        "fontFace": "Segoe UI Semibold",
        "color": "#0000FF"
    },
    "label": {
        "fontSize": 10,
        "fontFace": "Segoe UI",
        "color": "#0000FF"
    }
},
"firstLevelElements": "#0000FF",
"secondLevelElements": "#0000FF"

2 Likes

Hi @upwardD, did the response provided by @Greg help you solve your query? If not, how far did you get and what kind of help you need further? If yes, kindly mark as solution the answer that solved your query. Thanks!

Hi @upwardD, we’ve noticed that no response has been received from you since the 1st of July. We just want to check if you still need further help with this post? In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved.

Hi @upwardD, due to inactivity, a response on this post has been tagged as “Solution”. If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the check box.Thanks!

I am sorry for the late response, it indeed was helpful.
Thank you