Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am trying to import the Assistant font.
However, when I do so, I only have the option of "Assistant" and not its various styles.
For example: "Assistant-Bold", "Assistant-ExtraBold", "Assistant-ExtraLight", "Assistant-Light", "Assistant-Medium", "Assistant-Regular", "Assistant-SemiBold".
I am using the JSON object below to import my custom theme.
{"name":"Custom","dataColors":["#8285D8","#1F1F29","#EBEBEB","#F8F8F8","#08080F", "#013E61", "#41007B"],"visualStyles":{"*":{"*":{"*":[{"fontFamily":"Assistant", "color":{"solid":{}}}]}}}}
Can someone help me with being able to import these multiple fonts?
@jamestieu
You can only assign the customized font for each visual.
Solved: Can we add custom font (.ttf type) in Power BI des... - Microsoft Power BI Community
Or you can watch this video explanied in detail:
How to add custom fonts (.ttf) in Power BI and limitations - YouTube
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
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?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
80 | |
63 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |