Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Custom Fonts in Power BI

Hi All,

 

I have imported a Custom Font in Power BI Report through JSON file named as "Avenir LT Std 45 Book" and published the report. After publishing the report it displayed the correct font which I imported. But, when we Embed it on our portal it is showing the default font of Power BI in the CSS file in the properties but visually it is showing the Avenir font.

 

Please, Do let me know if you have any suggestions to get the correct fonts in the CSS while embedding report.

 

Thanks   

1 Reply

  • v-xuding-msft's avatar
    v-xuding-msft
    Community Support

    Hi Anonymous ,

    You could try my sample that I attached and check if it works fine in your portal. If yes, I think maybe part of scripts that you created is not recognized. You could reference the document to modify yours. If not, could you please share your file to let us test?

    My .josn file :

     

    { 
        "name": "ColorblindSafe-Longer", 
        "dataColors": ["#074650", "#009292", "#fe6db6", "#feb5da", "#480091", "#b66dff", "#b5dafe", "#6db6ff", "#914800", "#23fd23"],
        "background":"#FFFFFF",
        "foreground": "#074650",
        "tableAccent": "#fe6db6"
    }

     

    Best Regards,

    Xue Ding

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.