Skip to content

Instantly share code, notes, and snippets.

@i2r
Last active May 15, 2020 08:38
Show Gist options
  • Save i2r/0c316142178c4435736dd0582f0dc981 to your computer and use it in GitHub Desktop.
Save i2r/0c316142178c4435736dd0582f0dc981 to your computer and use it in GitHub Desktop.
Font Loading Test
/**
* 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;
}
Hello World!</br>
<span>И по-русски: Мир, привет!</span>
// alert('Hello world!');
{"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