Forum Discussion
Add a font
I want to add MONTSERRAT as a font to choose from in all my reports. How can I do that?
18 Replies
- AnonymousNot applicable
I also would like to use a font in my text boxes that is not currently included in the selection.
- AnonymousNot applicable
With the addition of Themes, this is now possible. As I was also looking for the solution and stumbled on this same query which looks unanswered, I thought of posting the solution from my end which is working fine for me.
1. Go to https://powerbi.microsoft.com/en-us/blog/power-bi-community-report-theme-gallery/ and download the JSON file for any theme you like.
2. Open the JSON file using Notepad++ or similar editor and add below lines. Change the font family to one you would like to have.
"visualStyles":{ "*":{ "*":{ "*":[{"fontFamily": "HELVETICA NEUE" }] } } },3. Import and select the theme in PowerBI to set the font family for entire report. This should set you up.
Cheers,
AK
- AnonymousNot applicable
Hi Anonymous ,
Do you know if there is a way that I can get the fonts to work on the service and embedded as well?
- SofBLAdvocate II
The problem is that we can customize the font basicaly in the json theme file. But https://learn.microsoft.com/en-us/power-bi/fundamentals/power-bi-browsers states clearly that if the font is not installed on the user machine that is viewing the report in the service it will not work. They even say dont use these default fonts if you think that mac users are using your reports. In some documents the fonts are embedded, like a pdf document. But the power bi service is not a document its more of a website. Maybe the solution would be using webfonts like in CSS https://www.w3schools.com/css/css3_fonts.asp but that is not implemented in the power bi service as of now.
- v-huizhn-msftMicrosoft Employee
Hi Anonymous,
Until now, we can't add the fond except supported fonts family, please review the ideas and vote them.
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/19059709-customize-all-fonts-with-json
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/9007054-allow-fonts-to-be-customized
Best Regards,
Angelia- AnonymousNot applicable
MONTSERRAT is actually just a standard font. Even that is not possible?
- kiranvijayFrequent Visitor
You can import it as .less file.
@import (less) url('https://fonts.googleapis.com/css?family=Montserrat');- AnonymousNot applicable
Sounds good! Where do I enter this code?
- kiranvijayFrequent Visitor
This is currently possible only with custom visuals.
Sample custom visual with Font family assigned under style/visual.less https://github.com/Microsoft/PowerBI-visuals-sampleBarChart
- aparna-bhFrequent Visitor
Can you please advise where to add this import statement?
- PaulDBrownCommunity Champion
- AdrienLNew Member
Hi everyone, I wanted to reopen the topic to know how this feature is managed nowadays :
- Can I add my proper font with this method ? In that case how should I name it (call it in the function tho) ?
- If I can read this font because it's installed on my computer, do we know if this font will be visible for all external viewer ? Or is there a way to embed it ?Thank you so much,
AdrienL- JSALRegular Visitor
Hi AdrienL,
I'm having the same trouble. Did you solve the problem at the end?
Thanks,
JSAL