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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Power BI Client API - Report Theme problem

The font size and font family for a table are not obeying theme in an embedded visual

I've tried the following json as my theme in power Bi embedded, but the font family and font size are not affected by this json.

It is part of power-bi-client 2.18.5

 

 

 

 

export const microsoftTestTheme: Theme = {
  name: 'microsoftTestTheme',
  textClasses: {
    callout: {
      fontSize: 14,
      fontFace: 'Tahoma',
      color: '#2E2E2E'
    },
    title: {
      fontSize: 14,
      fontFace: 'Tahoma',
      color: '#2E2E2E'
    },
    header: {
      fontSize: 14,
      fontFace: 'Tahoma',
      color: '#2E2E2E'
    },
    label: {
      fontSize: 14,
      fontFace: 'Tahoma',
      color: '#2E2E2E'
    }
  },
  visualStyles: {
    'table': { 
      '*': {
        columnHeaders: [
          {
            backColor: {
              solid: {
                color: '#DFDFDF'
              }
            },
            fontColor: {
              solid: {
                color: '#2E2E2E'
              }
            },
            fontFamily: 'Tahoma',
            fontSize: 14,
            wordWrap: false
          }
        ],
        values: [{
          fontSize: 14,
          fontFamily: 'Tahoma',
          wordWrap: false,
          backColorPrimary: {
            solid: {
              color: '#FFFFFF'
            }
          },
          backColorSecondary: {
            solid: {
              color: '#EEEEEE'
            }
          }
        }]
      }
    },
    'tableEx': { 
      '*': {
        columnHeaders: [
          {
            backColor: {
              solid: {
                color: '#DFDFDF'
              }
            },
            fontColor: {
              solid: {
                color: '#2E2E2E'
              }
            },
            fontFamily: 'Tahoma',
            fontSize: 14,
            wordWrap: false
          }
        ],
        values: [{
          fontSize: 14,
          fontFamily: 'Tahoma',
          wordWrap: false,
          backColorPrimary: {
            solid: {
              color: '#FFFFFF'
            }
          },
          backColorSecondary: {
            solid: {
              color: '#EEEEEE'
            }
          }
        }]
      }
    }
  }
};

 

 

 

 

Please can this bug be fixed

 

Many thanks

Colin

Status: Investigating
Comments
Anonymous
Not applicable

Also, we would ultimately like to change the font to Lato, but currently even the standard Power bi fonts, such as Tahoma in the example above, are not working.

v-cazheng-msft
Community Support
Status changed to: Investigating