Last active
May 15, 2020 08:38
-
-
Save i2r/0c316142178c4435736dd0582f0dc981 to your computer and use it in GitHub Desktop.
Font Loading Test
This file contains hidden or 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
/** | |
* Font Loading Test | |
*/ | |
html, body { | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; | |
} | |
body { | |
font-family: 'YS Text', 'Helvetica Neue', Arial, sans-serif; | |
-webkit-font-feature-settings: 'liga', 'kern'; | |
-moz-font-feature-settings: 'liga', 'kern'; | |
font-feature-settings: 'liga', 'kern'; | |
} | |
span { | |
font-weight: bold; | |
} | |
@font-face { | |
font-family: 'YS Text'; | |
src: url('//yastatic.net/s3/home/fonts/ys/1/text-light.woff2') format('woff2'), url('//yastatic.net/s3/home/fonts/ys/1/text-light.woff') format('woff'); | |
font-weight: 300; | |
font-style: normal; | |
font-stretch: normal; | |
} | |
@font-face { | |
font-family: 'YS Text'; | |
src: url('//yastatic.net/s3/home/fonts/ys/1/text-regular.woff2') format('woff2'), url('//yastatic.net/s3/home/fonts/ys/1/text-regular.woff') format('woff'); | |
font-weight: normal; | |
font-style: normal; | |
font-stretch: normal; | |
} | |
@font-face { | |
font-family: 'YS Text'; | |
src: url('//yastatic.net/s3/home/fonts/ys/1/text-medium.woff2') format('woff2'), url('//yastatic.net/s3/home/fonts/ys/1/text-medium.woff') format('woff'); | |
font-weight: 500; | |
font-style: normal; | |
font-stretch: normal; | |
} | |
@font-face { | |
font-family: 'YS Text'; | |
src: url('//yastatic.net/s3/home/fonts/ys/1/text-bold.woff2') format('woff2'), url('//yastatic.net/s3/home/fonts/ys/1/text-bold.woff') format('woff'); | |
font-weight: bold; | |
font-style: normal; | |
font-stretch: normal; | |
} |
This file contains hidden or 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
Hello World!</br> | |
<span>И по-русски: Мир, привет!</span> |
This file contains hidden or 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
// alert('Hello world!'); |
This file contains hidden or 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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment