Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Custom fonts

I want to add custom fonts to my Power BI Report.
For that, I have created a JSON File.

{"name":"Custom","dataColors":["#118DFF","#12239E","#E66C37","#6B007B","#E044A7","#744EC2","#E7C005","#D64550"],"textClasses":{"label":{"fontFace":" Conv_HelveticaNeue-Light"}}}

But using this code, fonts in some visuals are working. But custom fonts for the card visual and header of the slicer visual are not working.
Can anyone rewrite the code of the JSON file, I can apply (Conv_HelveticaNeue-Light) this font to all visuals.

5 Replies

  • rajulshah's avatar
    rajulshah
    Resident Rockstar

    Anonymous 
    Maybe this link can help you give fonts to the titles of specific charts.

    Please let me know if you need any help with this.

  • Hi Anonymous ,
    Please try this :-
    {"name":"Custom",
    "visualStyles":{"*":{"*":{"*":[{"fontSize":12,"fontFamily":"Conv_HelveticaNeue-Light","color":{"solid":{}}}]}}},
    "dataColors":["#118DFF","#12239E","#E66C37","#6B007B","#E044A7","#744EC2","#E7C005","#D64550"]}
    For more information you can refer to this link :-
    https://towardsdatascience.com/custom-fonts-in-power-bi-everything-you-wanted-to-know-652163750ba3
    Thanks ,
    Pratyasha Samal
    Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
    If you found this post helpful, please give Kudos C

    • Anonymous's avatar
      Anonymous
      Not applicable

      It's not working.
      I want (Conv_HelveticaNeue-Light) this font in every visual.

      • pratyashasamal's avatar
        pratyashasamal
        Memorable Member

        {“name”:“Helvetica Neue Light”,

        “visualStyles”:{"":{"":{"*":[{“fontSize”:12,“fontFamily”:“helveticaneue-light”,“color”:{“solid”:{}}}]}}}}
        Can you try this ?