woff2 만 Failed to decode downloaded font 라는 경고 문구

bunny.log·2022년 10월 4일

Failed to decode downloaded font

폰트 적용시 희안하게 woff2Failed to decode downloaded font 라는
경고 문구가 아래처럼 크롬 브라우저에서 콘솔창에 떳다.

Failed to decode downloaded font: http://localhost:3000/fonts/Apple/AppleSDGothicNeoB.woff2

내가 적용한 사용자 정의 폰트

@font-face {
		font-family: 'Apple SD Gothic Neo';
		font-style: bold;
		font-weight: 600;
		src: url('/fonts/Apple/AppleSDGothicNeoB.woff2') format('font-woff2'),
			url('/fonts/Apple/AppleSDGothicNeoB.woff') format('woff'),
			url('/fonts/Apple/AppleSDGothicNeoB.otf') format('truetype');
	}

해결

글꼴 성명 의 format 형식을 format ('woff2')에서 format ('font-woff2') 로 변경한다!

profile
더 많은 유익한 내용은 ->> https://github.com/nam-yeun-hwa

0개의 댓글