Mailspring/app/internal_packages/custom-fonts/styles/fonts.less

46 lines
1.1 KiB
Text
Raw Normal View History

2017-06-24 09:22:51 +08:00
// ----- Font Families -----
@font-face {
font-family: 'Nylas-Pro';
font-style: normal;
font-weight: 200;
src: url('mailspring://custom-fonts/fonts/Custom-Thin.otf');
2017-06-24 09:22:51 +08:00
}
@font-face {
font-family: 'Nylas-Pro';
font-style: normal;
font-weight: 300;
src: url('mailspring://custom-fonts/fonts/Custom-Blond.otf');
2017-06-24 09:22:51 +08:00
}
@font-face {
font-family: 'Nylas-Pro';
font-style: normal;
font-weight: 400;
src: url('mailspring://custom-fonts/fonts/Custom-Normal.otf');
2017-06-24 09:22:51 +08:00
}
@font-face {
font-family: 'Nylas-Pro';
font-style: normal;
font-weight: 500;
src: url('mailspring://custom-fonts/fonts/Custom-Medium.otf');
2017-06-24 09:22:51 +08:00
}
@font-face {
font-family: 'Nylas-Pro';
font-style: normal;
font-weight: 600;
src: url('mailspring://custom-fonts/fonts/Custom-SemiBold.otf');
2017-06-24 09:22:51 +08:00
}
// Pro-SemiBold doesn't render emoji properly. Override the emjoi unicode
// block so that it uses the "Normal" weight even at font-weight:600.
@font-face {
font-family: 'Nylas-Pro';
font-style: normal;
font-weight: 600;
src: url('mailspring://custom-fonts/fonts/Custom-Normal.otf'), Helvetica, sans-serif;
unicode-range: U+1f300-1f5ff, U+1f600-1f64f, U+1f680-1f6ff, U+2600-26ff;
2017-06-24 09:22:51 +08:00
}