Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Wrong font displayed on card visual after customized JSON theme import

Hi,

I changed the font of the category label (card visual) to "DIN" in my JSON custom theme.

 

        "card": {
            "*": {
                "categoryLabels": [
                    {
                        "fontFamily":"DIN"
                    }
                ]
            }

 

 

There are no issues with the import of the file. Moreover, the font family "DIN" is shown in the format pane. However, the displayed font is obviously not "DIN".

Thanks for your help.  

Status: New
Comments
v-qiuyu-msft
Community Support

Hi @Dominik_Umile,

 

Please replace "DIN" as "wf_standard-font" in your theme file. For more information, please refer to this thread: https://community.powerbi.com/t5/Issues/Update-on-Theming-Title-Background-amp-Font-Color-does-not-w...

 

{ 
   "name":"Custom Theme",
   "visualStyles":{ 
      "card":{ 
         "*":{ 
            "categoryLabels":[ 
               { 
                  "fontFamily":"wf_standard-font"
               }
            ]
         }
      }
   }
}

Best Regards,
Qiuyun Yu

Dominik_Umile
Regular Visitor

Thanks, that worked.