Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
Solved! Go to Solution.
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
Proud to be a 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
Proud to be a Super User!