即使我们不在材质ui中使用roboto,在主题对象中我们需要什么?

时间:2019-12-02 09:43:53

标签: reactjs material-ui

我需要在我的material-ui + react项目中设置自定义字体系列。我需要了解material-ui中排版的覆盖部分。它说

  

例如,此演示使用系统字体而不是默认的Roboto字体。

const theme = createMuiTheme({
  typography: {
    fontFamily: [
      '-apple-system',
      'BlinkMacSystemFont',
      '"Segoe UI"',
      'Roboto',
      '"Helvetica Neue"',
      'Arial',
      'sans-serif',
      '"Apple Color Emoji"',
      '"Segoe UI Emoji"',
      '"Segoe UI Symbol"',
    ].join(','),
  },
});

我的问题是,为什么在上面的数组中我们需要Roboto和其他字体,例如Helvetica neueArial,我们还是不使用它们

0 个答案:

没有答案