Forum Discussion
Importing MULTIPLE Fonts in Power BI?
Hey jamestieu ,
the fonts in your JSON have to have the identical name like in the folder C:\Windows\Fonts
If you have multiple font files (for example "Assistant-Bold.ttf", "Assistant-ExtraBold.ttf", "Assistant-ExtraLight.ttf", etc.), then you have to add all of them to your JSON file.
Hi Den,
I tried something like this:
{"name":"Custom","dataColors":["#8285D8","#1F1F29","#EBEBEB","#F8F8F8","#08080F", "#013E61", "#41007B"],"visualStyles":{"*":{"*":{"*":[{"fontFamily":"Asssitant-Light.ttf, Assistant-Bold.ttf", "color":{"solid":{}}}]}}}}
But then I got this:
I also tried this:
{"name":"Orkestra","dataColors":["#8285D8","#1F1F29","#EBEBEB","#F8F8F8","#08080F", "#013E61", "#41007B"],"visualStyles":{"*":{"*":{"*":[[{"fontFamily":"Asssitant-Light.ttf", "color":{"solid":{}}}], [{"fontFamily":"Asssitant-Bold.ttf", "color":{"solid":{}}}]]}}}}
You will see a multi-level list of font-families in the object:
[[{"fontFamily":"Asssitant-Light.ttf", "color":{"solid":{}}}], [{"fontFamily":"Asssitant-Bold.ttf", "color":{"solid":{}}}]]
It imported successfully, but none of the fonts are available to use.
Can you help?