0 Kudos

json to set default font for text box possible as not picking up global visual property in theme

Status: Delivered
by po Regular Visitor on ‎10-25-2018 01:27 AM

Hi,

 

Had a look on forum as having issue with when add text box to power bi report the text defaults to segui rather than font which has been set in theme file.

 

Other visuals pick up the font which has been set as expected, even when no local visual json property has been set which is the way woudl also expect text box to behave however text box defaults to segoe.

 

Couldn't find any theme snippet for setting text box json as local visual.

 

Another post on forum had suggested using default properties which looks to work for other visuals apart from text box.

 

How can you set the default font of any text box added to be a ceratin font and size?

 

Thanks

Status: Delivered
Comments
by Moderator v-qiuyu-msft
on ‎10-26-2018 01:33 AM

Hi @po,

 

Based on this article, textbox is not listed in available visualName, it's not supported to specify desired font family and size for textbox. 

 

But we can set font color for textbox, as the foreground applies to textbox text, see: https://docs.microsoft.com/en-us/power-bi/desktop-report-themes#structure-of-a-report-theme-json-fil...

 

Best Regards,
Qiuyun Yu 

by po Regular Visitor
on ‎10-26-2018 01:54 AM

Hi,

 

Thanks for update.

 

Yes the foreground gives the desired colour.

 

Do you know if microsoft have any plans to give this functionality in future to allow text box fontfamily and szie to be set?

 

Thanks

by Moderator v-qiuyu-msft
on ‎10-28-2018 11:16 PM

Hi @po,

 

I didn't heard any plan about textbox custom theme. You can submit your feedback in Ideas forum: https://ideas.powerbi.com/forums/265200-power-bi-ideas

 

Best Regards,
Qiuyun Yu 

by Moderator v-qiuyu-msft
on ‎10-28-2018 11:16 PM
Status changed to: Delivered
 
by po Regular Visitor
on ‎10-29-2018 06:51 AM

Hi,

 

Noticed set as Delivered - still don't seem to have ability to set fontfamily and size - have latest version of power bi desktop.

 

Is it in the next release e.g. nove 2018 of power bi desktop?

 

Thanks

Idea Statuses