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

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

Accepted Solutions
Community Support Team
Community Support Team

Re: Change fontfamily power bi report

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

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
1 REPLY 1
Community Support Team
Community Support Team

Re: Change fontfamily power bi report

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

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |