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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. 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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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