The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I've created a custom theme in which I'm defining a font size for my visualisation titles.
"title": {
"fontSize": "9",
"fontFace": "Segoe UI Semibold",
"color": "#666666"
}
When I import this into PBI Desktop, the title font size is coming through as 10.5...
Any ideas?
Solved! Go to Solution.
Hi @Andy_T ,
Microsoft reply:
The "title" is a generalized textClass that is used differently across the product. Visuals use the "largeTitle" text class variant, which will increase the font size given by the "title" textClass by 7/6ths. 10.5 is exactly 7/6ths of 9, so this behavior is expected.
The Power BI Theme Documentation details this in a table listing the text classes: https://docs.microsoft.com/en-us/power-bi/desktop-report-themes#report-theme-json-file-format
If you need to directly only change properties the visual title (and not the other items that inherit from the "title" textClass), you can target the "largeTitle" textClass instead.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Andy_T ,
Microsoft reply:
The "title" is a generalized textClass that is used differently across the product. Visuals use the "largeTitle" text class variant, which will increase the font size given by the "title" textClass by 7/6ths. 10.5 is exactly 7/6ths of 9, so this behavior is expected.
The Power BI Theme Documentation details this in a table listing the text classes: https://docs.microsoft.com/en-us/power-bi/desktop-report-themes#report-theme-json-file-format
If you need to directly only change properties the visual title (and not the other items that inherit from the "title" textClass), you can target the "largeTitle" textClass instead.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks very much, I've made the changes and it's now behaving as expected.
What changes did yo make, if possible please share solution. Thanks
Hi @Andy_T ,
I have reported this issue internally and will update here once I get any information.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.