Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Experts,
I am trying to add font types which belongs to same font family, in Power BI Desktop. These font types are of type .ttf and stored in la ocal folder.
Please let me know how can I apply these fonts to my Power BI file.
Thanks.
Solved! Go to Solution.
Hi @Anonymous,
Please refer to the demo below. We can assign the customized settings for each visual. I assigned different "font family" for the Table visual and the Matrix visual.
{ "name": "Green", "dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"], "background":"#FFFFFF", "foreground": "#3A6108", "tableAccent": "#568410", "visualStyles":{ "tableEx": { "*": { "*": [{ "fontFamily": "simsong" }] } }, "pivotTable": { "*": { "*": [{ "fontFamily": "Arial Black" }] } } } }
Best Regards,
Dale
Five years later and the solution to something as basic as "Adding fonts" to something that claims to be an enterprise-grade solution remains a hack!
Hi @Anonymous,
If Windows doesn't have the font, you can install it first. Then apply a theme to the Desktop. Please refer to desktop-report-themes.
{ "name": "Green", "dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"], "background":"#FFFFFF", "foreground": "#3A6108", "tableAccent": "#568410", "visualStyles":{ "*": { "*": { "*": [{ "fontFamily": "simsong" }] } } } }
Best Regards,
Dale
Thanks for your reply.
Please let me know if we can add multiple font families to one Theme JASON file.
Hi @Anonymous,
Yes, you can. Please refer to desktop-report-themes#report-theme-json-file-format for details. You would change the "*" to the proper parts you'd like to customize in my last demo code.
Best Regards,
Dale
Hi Dale,
Thanks for your help. Do you mean by this :
{
"name": "Green",
"dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"],
"background":"#FFFFFF",
"foreground": "#3A6108",
"tableAccent": "#568410",
"visualStyles":{
"*": {
"*": {
"*": [{
"fontFamily": "simsong"
}]
[{
"fontFamily": "abco"
}]
}
-------------------------------
OR
{
"name": "Green",
"dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"],
"background":"#FFFFFF",
"foreground": "#3A6108",
"tableAccent": "#568410",
"visualStyles":{
"*": {
"*": {
"*": [{
"fontFamily": ["simsong","abco"]
}]
}
I have tried both codes, but giving error.
Please advise.
Many Thanks.
Hi @Anonymous,
Please refer to the demo below. We can assign the customized settings for each visual. I assigned different "font family" for the Table visual and the Matrix visual.
{ "name": "Green", "dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"], "background":"#FFFFFF", "foreground": "#3A6108", "tableAccent": "#568410", "visualStyles":{ "tableEx": { "*": { "*": [{ "fontFamily": "simsong" }] } }, "pivotTable": { "*": { "*": [{ "fontFamily": "Arial Black" }] } } } }
Best Regards,
Dale
I uploaded the file and it worked on my machine ... I created the web link ... but on a machine that doesn't have the font installed it goes back to New roan teams ... how to make the font work on any machine (link web) without necessarily having to install the font?
Thanks
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
126 | |
106 | |
105 | |
86 | |
72 |