Forum Discussion

romals29's avatar
romals29
Icon for Helper II rankHelper II
4 years ago
Solved

How to add custom font

Hi

I need to add a custom font to my power bi desktop.

I know that we can create a theme with the font type we want in JSON and call that JSON file in theme would sort out the issue but my requirements are different.

I don't want to add as a theme because I might need to add different colors, using gradient colors in charts and backgrounds so is there any possibility that only to add font only instead of the entire theme.

 

Thank You

Romal

8 Replies

  • Hi 

     

    I am able to do this using JSON file where I have given the font type only.

    This is working fine but in my pbix file I have 5 dashboards. its changing the font only in first dashboard and rest are still looks same.

    But those visuals tooltips only getting update not the value's font.

     

    Looks strange.

    May someone please help me on this. 

     

    This is the JSON file code I have used

    {
    "name": "Custom Theme",
    "visualStyles": {
    "*": {
    "*": {
    "*": [
    {
    "fontFamily": "Algerian"
    }
    ]
    }
    }
    }
    }

    • romals29's avatar
      romals29
      Icon for Helper II rankHelper II

      Hi VahidDM

       

      Thank you for your reply.

      In this article it uses custom visual - HTML Content and with it we can add titles and description only, but my requirement is to change fonts of all visuals in a dashboard.

      Just need to update fonts only in all kind of charts that dashboard has.

       

      Can that be done using this HTML Content?

      Or any other way is there?

       

      Thank You

      Romal

  • Hi

     

    Any ways to use CSS file in power bi desktop and add custom fonts

     

    Thank You

    • mariaerthall's avatar
      mariaerthall
      New Member

      i did that and didn't work. i did all the steps and still can't use the theme i added, it only appears in the "box text" of the "homepage" menu, but i can't use it in the graphics, can you help me with that? I used the font from "google.fonts" and the code in json:

      {
          "name": "Nova Fonte",
          "visualStyles":{
          "*":{
              "*":{
                  "*":[
                          {"fontFamily":"Montsserat"}
                      ]
                  }
              }
          }
      }

      Pleeease i need help, i tried everything.
    • lovishsood1's avatar
      lovishsood1
      Icon for Resolver I rankResolver I

      I can't see any font Family related thing in this solution??

  • I tried to added the theme to use the font "montsserat" in my dashboards using json and didn't work. I did all the steps and still can't use the theme i added, it only appears in the "box text" of the "homepage" menu, but i can't use it in the graphics, can someone help me with that? I used the font from "google.fonts" and the code in json:

    {
        "name""Nova Fonte",
        "visualStyles":{
        "*":{
            "*":{
                "*":[
                        {"fontFamily":"Montsserat"}
                    ]
                }
            }
        }
    }

    Pleeease i need help, i tried everything.