typescript 字体 - 替换所有材料组件

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了typescript 字体 - 替换所有材料组件相关的知识,希望对你有一定的参考价值。

Import Open Sans font in styles.scss
@import url('//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800');


Setup in Angular Theme (theme.scss) to override Roboto font with Open Sans for all Angular components:
@import '~@angular/material/theming';
$custom-typography: mat-typography-config( $font-family: '"Open Sans", sans-serif');
@include mat-core($custom-typography);

以上是关于typescript 字体 - 替换所有材料组件的主要内容,如果未能解决你的问题,请参考以下文章