Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi
I´m creating my json code for all visualizations, but I have a problem with fontfamily. I put "Segoe (Bold) in the title of the table, this is my json code.
When I import my json code to the desktop, it seems it works:
But the problem is that I can see it visually, it puts other font:
And it should be like that:
It happens with all elements.
How could I solve it?
Thank you.
Solved! Go to Solution.
Hi @ania_roh ,
Modify " Segoe (Bold)" as "Segoe UI Bold",as tested here,it seems that "Segoe (Bold)" in json code is "Segoe UI Bold",pls see below:
{"name":"Custom","textClasses":
{"title":
{"fontFace":"'Segoe UI Bold', wf_segoe-ui_bold, helvetica, arial, sans-serif"}
}
}
Hi there, I tried Segoe UI Black
in my json script and it works just fine. I had the same issue you have. Hope it helps you
Hi
The issue is in the font family. Try this one and it should work
"fontFamily":"wf_segoe-ui_bold"
Best regards,
Mijalis
Hi @ania_roh ,
Try to move 'fontfamily' properties to global place,pls refer to :
https://community.powerbi.com/t5/Desktop/Change-fontfamily-power-bi-report/td-p/562284
Thank you @v-kelly-msft
Ok, I will try it, but how could I do this, if I would like have everything Segoe Bold apart of values in the table and matrix (which is Segoe UI), header in slicer (which is Segoe UI) and labels in card (which is DIN)? The all rest is Segoe Bold.
Also, I noticed the problem only appears with Segoe Bold and DIN.
I tried to change my original code for Times New Roman, and it works.
Thanks
Hi @ania_roh ,
Modify " Segoe (Bold)" as "Segoe UI Bold",as tested here,it seems that "Segoe (Bold)" in json code is "Segoe UI Bold",pls see below:
{"name":"Custom","textClasses":
{"title":
{"fontFace":"'Segoe UI Bold', wf_segoe-ui_bold, helvetica, arial, sans-serif"}
}
}
Thank you for this discussion. I am having the same problem with a Google font Quattrocento Sans. It has a bold variant that I have brought into my font folder. I have been able to get the regular font to work in Power BI but not the bold. Does anyone know what the below code would be for this font?
{"fontFace":"'Segoe UI Bold', wf_segoe-ui_bold, helvetica, arial, sans-serif"}
Thank you in Advance!
Hi @ania_roh ,
It should be set under "Column header",not title,so modify the body of your json as below:
Hope it would help.
Hello @v-kelly-msft. Thank you for your reply. However, the problem appears not only in column header but in values, legend, total, etc, in all visualizations (cards, columnchart, pivottable, slicer), everything that includes fontFamily (for Din and for segoe bold) Also, I have json code not only for title, but for columnheader too, because I wanted to put fontfamily for two of them.
Thank you in advance
"tableEx": {
"*": {
"general": [
{
"responsive": true
}
],
"title": [
{
"show": true,
"text": "MODIFICA EL TÍTULO",
"titleWrap": true,
"fontColor": {
"solid": {
"color": "#0078AB"
}
},
"alignment": "Left",
"fontSize": 11,
"fontFamily": "Segoe (Bold)"
}
],
"background": [
{
"show": true,
"color": {
"solid": {
"color": "#F1F3F5"
}
},
"transparency": 0
}
],
"border": [
{
"show": true,
"color": {
"solid": {
"color": "#02253A"
}
},
"radius": 4
}
],
"total": [
{
"totals": true,
"fontColor": {
"solid": {
"color": "#0078ab"
}
},
"backColor": {
"solid": {
"color": "#F1F3F5"
}
},
"outline": "Up",
"fontFamily": "Segoe (Bold)",
"fontSize": 10
}
],
"grid": [
{
"gridVertical": true,
"gridVerticalColor": {
"solid": {
"color": "#FFFFFF"
}
},
"gridVerticalWeight": 2,
"gridHorizontal": true,
"gridHorizontalColor": {
"solid": {
"color": "#FFFFFF"
}
},
"gridHorizontalWeight": 2,
"rowPadding": 2,
"outlineColor": {
"solid": {
"color": "#02253a"
}
},
"outlineWeight": 1,
"textSize": 8,
"imageHeight": 75
}
],
"columnHeaders": [
{
"fontColor": {
"solid": {
"color": "#02253a"
}
},
"backColor": {
"solid": {
"color": "#B2B2B2"
}
},
"outline": "Frame",
"autoSizeColumnWidth": true,
"fontFamily": "Segoe (Bold)",
"fontSize": 10,
"alignment": "Left",
"wordWrap": true
}
],
"values": [
{
"fontColorPrimary": {
"solid": {
"color": "#02253A"
}
},
"backColorPrimary": {
"solid": {
"color": "#FFFFFF"
}
},
"fontColorSecondary": {
"solid": {
"color": "#02253A"
}
},
"backColorSecondary": {
"solid": {
"color": "#E6E6E6"
}
},
"outline": "none",
"urlIcon": true,
"wordWrap": true,
"fontFamily": "Segoe UI",
"fontSize": 8
}
]
}
Likely the best person to ask is @Mike_Carlo
User | Count |
---|---|
91 | |
73 | |
68 | |
63 | |
55 |
User | Count |
---|---|
99 | |
88 | |
73 | |
60 | |
58 |