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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
miltenburger
Helper V
Helper V

Change fontfamily power bi report

Hi guys,

 

I'm changin my report theme and got some visual actions changes in my json stylesheet:

"visualStyles": 
	{
		"*":
		{
			"*":
			{
			"title": 
				[{
				"show": true,
				"fontColor": { "solid": { "color": "#FFFFFF" } },
				"background": { "solid": { "color": "#52351f" } },
				"allignment": "center",
				"fontSize": 11,
				"fontFamily": "Tahoma"
				}],
			"background":
				[{
				"show": true,
				"color": { "solid" : { "color": "#FFFFFF" } },
				"transparency": 0
				}],
			"lockAspect": 
				[{
				"show": true
				}],
			"border": 
				[{
				"show": false
				}],
			"visualTooltip":
				[{
				"type": "Default"
				}],
			"stylePreset":
				[{
				"name": "None"
				}],
			"labels":
				[{
				"fontColor": { "solid": { "color": "#000000" } }
				}]
			}	
		},
	"page":
	{
		"*":
		{
		"background":
			[{
			"color": { "solid": { "color": "#e6e6e6" } },
			"transparency": 0
			}]
		}
	
	}
	}

Is there a possibility to change my fontfamily of the whole project?

Thanks in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @miltenburger,

 

Please try to use following json code as theme, I move 'fontfamily' properties to global place to apply to all available visuals:

 

{
	"name":"Change fontfamily",
	"visualStyles":{
        "*":{
             "*":{
		"*":[
               {
                  "fontSize":11,
                  "fontFamily":"Tahoma"
               }
            ],
            "title":[
               {
                  "show":true,
                  "fontColor":{
                     "solid":{
                        "color":"#FFFFFF"
                     }
                  },
                  "background":{
                     "solid":{
                        "color":"#52351f"
                     }
                  },
                  "allignment":"center"
               }
            ],
            "background":[
               {
                  "show":true,
                  "color":{
                     "solid":{
                        "color":"#FFFFFF"
                     }
                  },
                  "transparency":0
               }
            ],
            "lockAspect":[
               {
                  "show":true
               }
            ],
            "border":[
               {
                  "show":false
               }
            ],
            "visualTooltip":[
               {
                  "type":"Default"
               }
            ],
            "stylePreset":[
               {
                  "name":"None"
               }
            ],
            "labels":[
               {
                  "fontColor":{
                     "solid":{
                        "color":"#000000"
                     }
                  }
               }
            ]
         }
      },
      "page":{
         "*":{
            "background":[
               {
                  "color":{
                     "solid":{
                        "color":"#e6e6e6"
                     }
                  },
                  "transparency":0
               }
            ]
         }
      }
   }
}

 

Regards.

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @miltenburger,

 

Please try to use following json code as theme, I move 'fontfamily' properties to global place to apply to all available visuals:

 

{
	"name":"Change fontfamily",
	"visualStyles":{
        "*":{
             "*":{
		"*":[
               {
                  "fontSize":11,
                  "fontFamily":"Tahoma"
               }
            ],
            "title":[
               {
                  "show":true,
                  "fontColor":{
                     "solid":{
                        "color":"#FFFFFF"
                     }
                  },
                  "background":{
                     "solid":{
                        "color":"#52351f"
                     }
                  },
                  "allignment":"center"
               }
            ],
            "background":[
               {
                  "show":true,
                  "color":{
                     "solid":{
                        "color":"#FFFFFF"
                     }
                  },
                  "transparency":0
               }
            ],
            "lockAspect":[
               {
                  "show":true
               }
            ],
            "border":[
               {
                  "show":false
               }
            ],
            "visualTooltip":[
               {
                  "type":"Default"
               }
            ],
            "stylePreset":[
               {
                  "name":"None"
               }
            ],
            "labels":[
               {
                  "fontColor":{
                     "solid":{
                        "color":"#000000"
                     }
                  }
               }
            ]
         }
      },
      "page":{
         "*":{
            "background":[
               {
                  "color":{
                     "solid":{
                        "color":"#e6e6e6"
                     }
                  },
                  "transparency":0
               }
            ]
         }
      }
   }
}

 

Regards.

Xiaoxin Sheng

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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