Forum Discussion
Custom Font - DM Sans Power BI
So I have been trying to add a (Google) font called 'DM Sans' to Power BI using a JSON theme file, I have tested with other themes like 'Algerian', 'Goudy Stout Regular', and a few others and they work with in Power BI but when I try to use my DM Sans file I downloaded from Google Fonts it always seems to default to Times New Roman no matter what or how I try it.
Here is my JSON file:
```
```
Please advise thank you!
I didn't have the option of 'Install for all users' as there is only a single profile on my device I guess? Nonetheless, I finally figured it out!
These are the steps to use Google Fonts on Windows 11 (atleast that worked for me):
- Download the zip file (fonts.google.com) -> unzip it
- Control Panel -> Personalization -> Fonts Select 'Browse and install fonts' button
- Navigate the static folder within the font folder you have just unzipped and select the files you want to install
- In that very 'Fonts' window, scroll down to the search bar below "Available fonts" and type in the font you want to use (For example: DM Sans)
- Click the Font tile that shows up below, such as this:
- Once the tile is selected you should see a screen like this:
Scroll all the way down to the 'Metadata' section where you fill see a field named 'Full name'
That's the name you put into "fontFamily" field and it works!
The JSON file I used is pretty much the same:
{ "name": "DMSans_Theme", "dataColors": [ "#0729E0", "#9564FF", ... ], "foreground": "#BCBCBC", "background": "#F7F7F7", ... "visualStyles": { "*": { "*": { "*": [ { "fontSize": 16, "fontFamily": "'DM Sans 14pt'" } ] } } } }
3 Replies
- DekuSuper User
Please see this blog post with some details and limitations
https://medium.com/microsoft-power-bi/beyond-defaults-using-custom-fonts-in-power-bi-b2b341fd323e
- v-hjannapuCommunity Support
Hi pereiraosborne8 ,
Thank you for reaching out to the Microsoft fabric community forum.
The issue likely comes down to Power BI’s strict font requirements: it needs fonts to be installed system-wide, digitally signed, and in a static format like .ttf or .otf. Google Fonts like DM Sans sometimes come as variable fonts, which Power BI doesn’t always handle well. To fix this, download the static .ttf files for DM Sans from Google Fonts, right-click them, and select “Install for all users” to ensure system-wide access. Then, double-check the exact font name in Control Panel > Fonts and make sure it matches the "fontFamily" in your JSON theme file.
After installing, restart Power BI Desktop and reload your report to see if it works. One thing to note: even if DM Sans renders locally, Power BI Service often doesn’t support custom fonts and may revert to web-safe ones like Segoe UI or Calibri. If you’re still seeing Times New Roman, could you confirm the font file type (.ttf or .otf), whether it’s installed for all users, and the precise font name from Control Panel? That’ll help us figure out what’s going on.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
If the response has addressed your query, please Accept it as a solution and give a 'Kudos' so other members can easily find itBest Regards,
Harshitha.
Community Support Team
- pereiraosborne8Regular Visitor
I didn't have the option of 'Install for all users' as there is only a single profile on my device I guess? Nonetheless, I finally figured it out!
These are the steps to use Google Fonts on Windows 11 (atleast that worked for me):
- Download the zip file (fonts.google.com) -> unzip it
- Control Panel -> Personalization -> Fonts Select 'Browse and install fonts' button
- Navigate the static folder within the font folder you have just unzipped and select the files you want to install
- In that very 'Fonts' window, scroll down to the search bar below "Available fonts" and type in the font you want to use (For example: DM Sans)
- Click the Font tile that shows up below, such as this:
- Once the tile is selected you should see a screen like this:
Scroll all the way down to the 'Metadata' section where you fill see a field named 'Full name'
That's the name you put into "fontFamily" field and it works!
The JSON file I used is pretty much the same:
{ "name": "DMSans_Theme", "dataColors": [ "#0729E0", "#9564FF", ... ], "foreground": "#BCBCBC", "background": "#F7F7F7", ... "visualStyles": { "*": { "*": { "*": [ { "fontSize": 16, "fontFamily": "'DM Sans 14pt'" } ] } } } }