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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Sogand_Dehghan
New Member

how change font a table in json them power bi?

Hello

I prepared a json file and set the FontFamily on B Nazanin successfully. But the font of value of tableEx did not change. I tried the following JSON input:

Untitled.png

Any thoughts what i'm doing wrong or is it a bug?

 

Many thanks and best regards,

Dehghan

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @Sogand_Dehghan 

 

You can try the following Json file to modify your fonts (please customize your visuals).

vyaningymsft_0-1705915415710.png

Json:

{
	"name": "TableTemplate",
	"visualStyles": {
		"tableEx": {
			"*": {
				"grid": [{
					"gridVertical": true,
					"gridVerticalColor": { "solid": { "color": "#FFB8DD"}},
					"gridVerticalWeight": 2,
					"gridHorizontal": true,
					"gridHorizontalColor": { "solid": { "color": "#FFB8DD"}},
					"gridHorizontalWeight": 2,
					"rowPadding": 2,
					"outlineColor": { "solid": { "color": "#FFB8DD"}},
					"outlineWeight": 2,
					"textSize": 14,
					"imageHeight": 100
				}],
				"columnHeaders": [{
					"fontColor": { "solid": { "color": "#00B8DD"}},
					"backColor": { "solid": { "color": "#00AA22"}},
					"outline": "Frame",
					"autoSizeColumnWidth": true,
					"fontFamily": "B Nazanin",
					"fontSize": 12,
					"alignment": "Left",
					"wordWrap": true
				}],
				"values": [{
					"fontColorPrimary": { "solid": { "color": "#00B8DD"}},
					"backColorPrimary": { "solid": { "color": "#00AA22"}},
					"fontColorSecondary": { "solid": { "color": "#FFB8DD"}},
					"backColorSecondary": { "solid": { "color": "#FFAA22"}},
					"outline": "Frame",
					"urlIcon": true,
					"wordWrap": true,
					"fontFamily": "B Nazanin",
					"fontSize": 12
				}],
				"total": [{
					"totals": true,
					"fontColor": { "solid": { "color": "#00B8DD"}},
					"backColor": { "solid": { "color": "#00AA22"}},
					"outline": "Frame",
					"fontFamily": "B Nazanin",
					"fontSize": 14
				}],
				"stylePreset": [{ 
					"name": "BoldHeader"
				}]
			}
		}
	}
}

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi, @Sogand_Dehghan 

 

1. Please make sure that the B Nazanin font is not installed on your computer.
2. In the JSON theme file for Power BI, it should be lowercase values.

 

"tableEx": {
    "*": {
        "columnHeaders": [{
            "fontFamily": "B Nazanin"
        }],
        "values": [{
            "fontFamily": "B Nazanin"
        }]
    }
}

 

If the above does not work, please refer to the link below:

Video for change font: Change title size, color, font and backgrounds with the JSON theme file - YouTube

Related links: Solved: Custom Theme for Font Family - Microsoft Fabric Community

Official Documentation: Use report themes in Power BI Desktop - Power BI | Microsoft Learn

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

I yet have the problem.The font of all Visuals is B Nazanin even columnHeader. But font of value of table isnt B nazanin.

1.png2.png

Anonymous
Not applicable

Hi, @Sogand_Dehghan 

 

You can try the following Json file to modify your fonts (please customize your visuals).

vyaningymsft_0-1705915415710.png

Json:

{
	"name": "TableTemplate",
	"visualStyles": {
		"tableEx": {
			"*": {
				"grid": [{
					"gridVertical": true,
					"gridVerticalColor": { "solid": { "color": "#FFB8DD"}},
					"gridVerticalWeight": 2,
					"gridHorizontal": true,
					"gridHorizontalColor": { "solid": { "color": "#FFB8DD"}},
					"gridHorizontalWeight": 2,
					"rowPadding": 2,
					"outlineColor": { "solid": { "color": "#FFB8DD"}},
					"outlineWeight": 2,
					"textSize": 14,
					"imageHeight": 100
				}],
				"columnHeaders": [{
					"fontColor": { "solid": { "color": "#00B8DD"}},
					"backColor": { "solid": { "color": "#00AA22"}},
					"outline": "Frame",
					"autoSizeColumnWidth": true,
					"fontFamily": "B Nazanin",
					"fontSize": 12,
					"alignment": "Left",
					"wordWrap": true
				}],
				"values": [{
					"fontColorPrimary": { "solid": { "color": "#00B8DD"}},
					"backColorPrimary": { "solid": { "color": "#00AA22"}},
					"fontColorSecondary": { "solid": { "color": "#FFB8DD"}},
					"backColorSecondary": { "solid": { "color": "#FFAA22"}},
					"outline": "Frame",
					"urlIcon": true,
					"wordWrap": true,
					"fontFamily": "B Nazanin",
					"fontSize": 12
				}],
				"total": [{
					"totals": true,
					"fontColor": { "solid": { "color": "#00B8DD"}},
					"backColor": { "solid": { "color": "#00AA22"}},
					"outline": "Frame",
					"fontFamily": "B Nazanin",
					"fontSize": 14
				}],
				"stylePreset": [{ 
					"name": "BoldHeader"
				}]
			}
		}
	}
}

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

 

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.