15. 진짜 서체 사용하기
웹에서는 폰트 선택에 제한이 있다.
‘웹 안전’ 서체는 대부분의 플랫폼에서 지원하
는 것을 말함.
http://naradesign.net/wp/2009/06/05/844/
16. @font-face
CSS2 명세의 일부였고 IE5에서 구현되었다.
But
IE는 EOT만, 다른 브라우저는 TTF/OTF
EOT: Embedded OpenType Font
TTF: TrueType Font
OTF: OpenType Font
WOFF: Web Open Font Format
지원여부
http://caniuse.com/#feat=fontface
http://caniuse.com/#search=eot
http://caniuse.com/#search=ttf
http://caniuse.com/#search=woff
17. Font-family 정의
사용할 폰트를 정의하는 것. 이 선언만으로는 적용되지 않음.
브라우저는 자신이 쓸 수 있는 형식을 찾을 때까지 순서대로 시도함.
@font-face {
font-family: 'GarogierRegular';
src: url('fonts/Garogier_unhinted-webfont.eot');
src: url('fonts/Garogier_unhinted-webfont.woff')
format('woff'),
url('fonts/Garogier_unhinted-webfont.ttf')
format('truetype'),
url('fonts/Garogier_unhinted-webfont.svg')
format('svg');
font-weight: normal;
}
18. Font-family 사용
@font-face로 정의한 폰트를 사용.
body{
font-family: "GarogierRegular";
// 폴백
font-family: "GarogierRegular", Georgia,
"Palatino", "Palatino Linotype",
"Times", "Times New Roman",
serif;
}