폰트를 한글과 영어,숫자 따로 적용하기
Posted by Albert 902Day 6Hour 14Min 8Sec ago [2022-10-30]
css 상 한글 영문 숫자 다르게 설정하기
@font-face {
font-family: 'KoFonts';
src: url(../fonts/ChosunCentennial/ChosunCentennial.eot);
src: url(../fonts/ChosunCentennial/ChosunCentennial.eot?'iefix) format('embedded-opentype'),
url(../fonts/ChosunCentennial/ChosunCentennial.woff) format('woff'),
url(../fonts/ChosunCentennial/ChosunCentennial.ttf) format('truetype');
unicode-range: U+AC00-D7A3;
}
@font-face {
font-family: 'Sans';
src: url(../fonts/OpenSans/OpenSans-Regular.eot);
src: url(../fonts/OpenSans/OpenSans-Regular.eot?'iefix) format('embedded-opentype'),
url(../fonts/OpenSans/OpenSans-Regular.woff) format('woff'),
url(../fonts/OpenSans/OpenSans-Regular.ttf) format('truetype');
unicode-range: U+26;
}
body {
font-size: 35px;
font-family: 'KoFonts', 'Sans';
}
* {
font-family: inherit;
}
* 자주 사용할 만한 유니코드 범위
한글 범위: U+AC00-D7A3
영어 대문자 범위 : U+0041-005A
영어 소문자 범위 : U+0061-007A
숫자 범위 : U+0030-0039
특수 문자: U+0020-002F, U+003A-0040, U+005B-0060, U+007B-007E
원글: https://wazacs.tistory.com/48