Created
April 21, 2017 02:06
-
-
Save githiro/a8cf317dd1184382f2339955bd58ae4c to your computer and use it in GitHub Desktop.
SASS: Use CDN's Noto Sans JP but use LOCAL one preferentially if exists.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTO SANS JP | |
//////////////////////////////////// | |
/*! "Noto Sans JP" is licensed under the SIL Open Font License 1.1 by https://www.google.com/get/noto/ */ | |
@font-face { | |
font-family: 'Noto Sans JP'; | |
font-style: normal; | |
font-weight: 100; | |
src: local("Noto Sans CJK JP"), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Thin.woff2) format('woff2'), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Thin.woff) format('woff'), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Thin.otf) format('opentype'); | |
} | |
@font-face { | |
font-family: 'Noto Sans JP'; | |
font-style: normal; | |
font-weight: 300; | |
src: local("Noto Sans CJK JP"), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Light.woff2) format('woff2'), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Light.woff) format('woff'), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Light.otf) format('opentype'); | |
} | |
@font-face { | |
font-family: 'Noto Sans JP'; | |
font-style: normal; | |
font-weight: 400; | |
src: local("Noto Sans CJK JP"), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Regular.woff2) format('woff2'), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Regular.woff) format('woff'), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Regular.otf) format('opentype'); | |
} | |
@font-face { | |
font-family: 'Noto Sans JP'; | |
font-style: normal; | |
font-weight: 500; | |
src: local("Noto Sans CJK JP"), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Medium.woff2) format('woff2'), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Medium.woff) format('woff'), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Medium.otf) format('opentype'); | |
} | |
@font-face { | |
font-family: 'Noto Sans JP'; | |
font-style: normal; | |
font-weight: 700; | |
src: local("Noto Sans CJK JP"), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Bold.woff2) format('woff2'), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Bold.woff) format('woff'), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Bold.otf) format('opentype'); | |
} | |
@font-face { | |
font-family: 'Noto Sans JP'; | |
font-style: normal; | |
font-weight: 900; | |
src: local("Noto Sans CJK JP"), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Black.woff2) format('woff2'), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Black.woff) format('woff'), | |
url(//fonts.gstatic.com/ea/notosansjp/v5/NotoSansJP-Black.otf) format('opentype'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment