Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Use several custom fonts

I would like to use several custom fonts (Roboto Regular, Roboto Thin, Roboto Medium, and Roboto Bold) in a Power BI report. Ideally I would like to be able to select any of the mentioned fonts for both text boxes and text in visual elements such as matrices, plots, etc. 

 

I have succesfully added the Roboto Regular font to Power BI using the following code in the Theme json file: 

 

{"name":"Custom fonts",
"visualStyles":{"*":{"*":{"*":[{"fontSize":12,"fontFamily":"Roboto","color":{"solid":{}}}]}}}}

 

However, I am currently unable to use the Roboto Thin and Roboto Medium font while also maintaining the Roboto Regular font as an option. 

This question (https://community.powerbi.com/t5/Developer/How-to-import-customized-fonts-Regular-Bold-Semibold-light-etc/m-p/1051904)  from 2020 suggests it wasn't possible before, but as there have been changes to the fonts in Power BI since, I would like to hear if there is a solution now in 2022? 

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

     

    After the custom font is imported, you could set up the bold, italicize, and underline by three toggle switches:

    Roboto Thin and Roboto Medium seem impossible currently.

     

    Best Regards,

    Stephen Tao

     

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

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Any help is greatly appreciated! 

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    After the custom font is imported, you could set up the bold, italicize, and underline by three toggle switches:

    Roboto Thin and Roboto Medium seem impossible currently.

     

    Best Regards,

    Stephen Tao

     

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

    • Anonymous's avatar
      Anonymous
      Not applicable

      That was what I suspected. Thank you very much for your help.