2016-11-11 17 views

答えて

3

角度のある材質は材質の設計と材質の設計がRobotoフォントと強く結びついています。言及したように、文書には何もありませんので、フレームワークではできません。

しかし、角材依存の後にビルドに含める必要があるCSSファイルのフォントファミリを簡単に変更できます。ここから借りhttp://codepen.io/mattdanna/pen/pgwVzX

body { 
    font-family: "Comic Sans MS"; 
} 

input, 
button, 
select, 
textarea { 
font-family: inherit; 
font-size: inherit; 
line-height: inherit; 
} 

とデモ:ここでは例ですhttps://github.com/angular/material/issues/6561#issuecomment-170837189

+0

コミックSans ...あなたモンスター! upvoted;) – Keno

2

これは、件名に公式ドキュメントですが、それがあれば、バックアップの家族のクラスを提供する方法を指定しません。フォントがロードできない: https://material.angular.io/guide/typography

@import '[email protected]/material/theming'; 

// Define a custom typography config that overrides the font-family as well as the 
// `headlines` and `body-1` levels. 
$custom-typography: mat-typography-config(
     $font-family: monospace, 
     $headline: mat-typography-level(32px, 48px, 700), 
     $body-1: mat-typography-level(16px, 24px, 500) 
); 
// Override typography for all Angular Material, including mat-base-typography and all components. 
@include angular-material-typography($custom-typography); 

編集;バックアップフォントファミリの場合(引用符に注意してください):

$font-family: '"Sintony", Arial, sans-serif'