각기둥으로 각도 프로젝트를 설정했습니다. 나는 그것이 수행 방법은 내가Google 웹 글꼴이 각도로 사용되지 않습니까?
/* You can add global styles to this file, and also import other style files */
@import url('https://fonts.googleapis.com/css?family=Roboto');
// Set Global Font
body {
font-family: 'Roboto', sans-serif;
margin: 0;
}
그러나 내 styles.scss에 선언 그래서 나는 폰트처럼 대신 Roboto로의 산세 리프에 어쨌든 기본값을 것 같다, 내 웹 사이트와 Roboto로 글꼴을 번들하고 싶습니다. 같은 효과 index.html 안에 링크를 추가하려고했습니다.
P. 관련했는지 확실하지 않습니다,하지만 난이 어떻게 든 프로젝트에 영향을 미칠 수있는, 바로 그 파일에 자료 아이콘
// Import Material Icons
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: local('Material Icons'),
local('MaterialIcons-Regular'),
url('../node_modules/material-design-icons/iconfont/MaterialIcons-Regular.woff2') format('woff2'),
url('../node_modules/material-design-icons/iconfont/MaterialIcons-Regular.woff') format('woff'),
url('../node_modules/material-design-icons/iconfont/MaterialIcons-Regular.ttf') format('truetype');
}
을 추가?
솔루션이 작동하는 것처럼 보입니다. Roboto 글꼴 패밀리를 비활성화하면 실제로 글꼴이 변경되지만 온라인 CDN에서는 사용할 수 없습니다. –
@NikkiKononov 올바른 질문. 나는 그것이 CLI 컴파일러로 무언가라고 가정하고있다. 스타일 태그에 CDN을 추가하면 빌드가 실패합니다. 그리고 내가 아는 한 권장 방법입니다. cli 릴리즈로 업데이트를 유지하십시오. 상황이 빠르게 변하고 있습니다 –
동일한 방법으로 재료 디자인 아이콘을 추가 할 수 있습니다. @NikkiKononov –