Forum Discussion

Aravind24's avatar
Aravind24
Frequent Visitor
1 year ago

Custom Font in a theme

Hi Team,

 

This is my JSON file content. When i tried to apply this theme getting error.:

{
"name": "Simplifica Theme", // Added the "name" property
"dataColors": [
"#062F4F",
"#7CBB00",
"#0375B4",
"#B82601",
"#FFBB00",
"#008F95",
"#999895",
"#945D60",
"#3599B8",
"#DFBFBF",
"#4AC5BB",
"#5F6B6D",
"#FB8281",
"#F4D25A",
"#7F898A",
"#A4DDEE",
"#FDAB89",
"#B687AC",
"#28738A",
"#A78F8F",
"#168980",
"#293537",
"#BB4A4A",
"#B59525",
"#475052",
"#6A9FB0",
"#BD7150",
"#7B4F71",
"#1B4D5C",
"#706060",
"#0F5C55",
"#1C2325"
],
"background": "#FFFFFF",
"foreground": "#062F4F",
"tableAccent": "#000000",
"textClasses": {
"label": {
"fontFace": "Arimo"
},
"title": {
"fontFace": "Arimo"
},
"header": {
"fontFace": "Arimo"
},
"card": {
"fontFace": "Arimo"
},
"kpi": {
"fontFace": "Arimo"
}
}
}

 

Kindly help.

Uzi2019 Ritaf1983 pls help experts

7 Replies

  • Aravind24 , Try using

    %json
    {
    "name": "Simplifica Theme",
    "dataColors": [
    "#062F4F",
    "#7CBB00",
    "#0375B4",
    "#B82601",
    "#FFBB00",
    "#008F95",
    "#999895",
    "#945D60",
    "#3599B8",
    "#DFBFBF",
    "#4AC5BB",
    "#5F6B6D",
    "#FB8281",
    "#F4D25A",
    "#7F898A",
    "#A4DDEE",
    "#FDAB89",
    "#B687AC",
    "#28738A",
    "#A78F8F",
    "#168980",
    "#293537",
    "#BB4A4A",
    "#B59525",
    "#475052",
    "#6A9FB0",
    "#BD7150",
    "#7B4F71",
    "#1B4D5C",
    "#706060",
    "#0F5C55",
    "#1C2325"
    ],
    "background": "#FFFFFF",
    "foreground": "#062F4F",
    "tableAccent": "#000000",
    "textClasses": {
    "label": {
    "fontFamily": "Arimo"
    },
    "title": {
    "fontFamily": "Arimo"
    },
    "header": {
    "fontFamily": "Arimo"
    },
    "card": {
    "fontFamily": "Arimo"
    },
    "kpi": {
    "fontFamily": "Arimo"
    }
    }
    }

  • Aravind24's avatar
    Aravind24
    Frequent Visitor

    i used the same code added %json before the { bracket initially. Still same issue. if not help with a json which have font as "Arimo" for everything inc;luding cards, kpi, title everything

  • Aravind24's avatar
    Aravind24
    Frequent Visitor

    bhanu_gautam i used the same code added %json before the { bracket initially. Still same issue. if not help with a json which have font as "Arimo" for everything inc;luding cards, kpi, title everything

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Aravind24,

     

    Thank you for reaching out to Microsoft Fabric Community Forum.

     

    The error you're encountering is because Power BI themes do not currently support custom fonts unless they are pre-installed and recognized by Power BI Desktop.

    Only system fonts or those supported by Power BI (like Segoe UI, Arial, Times New Roman, etc.) can be used. If Arimo is not installed or not supported, Power BI will error out.

     

    If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!


    Regards,
    Vinay Pabbu

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Aravind24,

     

    As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
    If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

     

    Regards,
    Vinay Pabbu

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi @Aravind24,

       

      As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
      If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

       

      Regards,
      Vinay Pabbu

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi @Aravind24,

         

        As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
        If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

         

        Regards,
        Vinay Pabbu