글로벌 사이트 EDM 작업 중, 각 나라별로 쓰는 기본 폰트가 있을것이므로 기본 폰트에 대응해 font-family를 변경해준다.
한글
/* MAC */
body{font-family:'apple sd gothic neo', sans-serif}
/* window */
body{font-family:'Malgun Gothic', sans-serif}
/**
* APPLE SD Gothic Neo는 MAC OS X 및 iOS의 기본 국문 폰트이다
* Malgun Gothic은 window 기본 국문 폰트이다
* sans-serif는 고딕체를 나타낸다.
*/
영어
/* MAC */
body{font-family:'apple sd gothic neo', sans-serif}
/* window */
body{font-family:'Segoe UI', sans-serif}
중국어
/* MAC */
body{font-family:'apple sd gothic neo', sans-serif}
/* window */
body{font-family:'Microsoft YaHei UI', sans-serif} /* 간체 */
body{font-family:'Microsoft JhengHei UI', sans-serif} /* 번체 */
일본어
/* MAC */
body{font-family:'apple sd gothic neo', sans-serif}
/* window */
body{font-family:'Yu Gothic UI', sans-serif}
언어별로 폰트 패밀리 다르게 하기
<style>
:lang(zh) {font-family:'LiHei Pro Medium', sans-serif}
:lang(ko) {font-family:'nanum gothic', sans-serif}
:lang(ja) {font-family:osaka, sans-serif}
:lang(en) {font-family:'helvetica neue', sans-serif}
</style>
<p lang="zh">使劲儿</p>
<p lang="ja">がんばれ</p>
<p lang="ko">힘내</p>
<p lang="en">Fighting!</p>
참고, 출처 :
docs.microsoft.com/ko-kr/windows/uwp/design/globalizing/loc-international-fonts
국가별 글꼴 - UWP applications
이 항목에서는 미국 영어 이외의 언어로 지역화 된 Windows 앱에 사용할 수 있는 글꼴을 나열 합니다.
docs.microsoft.com
support.apple.com/ko-kr/HT210192
macOS Catalina에 포함된 서체
macOS Catalina는 내장되었거나 다운로드 가능한 다양한 서체와 함께 제공됩니다.
support.apple.com
nuli.navercorp.com/community/article/1132731
다국어 웹사이트 지원을 위한 HTML과 CSS
널리 알리는 기술 소식 다양한 접근성과 사용성, UI 개발에 대한 소식을 널리 알리고 참여하세요! Spread your knowledge! 구독 아티클 다국어 웹사이트 지원을 위한 HTML과 CSS Nyx Chung 2015-06-09 15:55:58 안
nuli.navercorp.com
en.wikipedia.org/wiki/List_of_ISO_639-1_codes
728x90
'Web > Styles' 카테고리의 다른 글
[CSS] 배경 필터 backdrop-filter (0) | 2021.09.27 |
---|---|
[CSS] !important를 대체할 :all (0) | 2021.05.31 |
[CSS] css 선언 순서 (0) | 2021.03.19 |
[CSS] 모서리 자르기 (0) | 2020.12.29 |
[CSS] 웹페이지 프린트 설정 (1) | 2020.05.18 |