Files
mailspring-mirror/app/internal_packages/custom-fonts/styles/fonts.less
2017-09-05 13:40:25 -07:00

46 lines
1.1 KiB
Plaintext

// ----- Font Families -----
@font-face {
font-family: 'Nylas-Pro';
font-style: normal;
font-weight: 200;
src: url('mailspring://custom-fonts/fonts/Custom-Thin.otf');
}
@font-face {
font-family: 'Nylas-Pro';
font-style: normal;
font-weight: 300;
src: url('mailspring://custom-fonts/fonts/Custom-Blond.otf');
}
@font-face {
font-family: 'Nylas-Pro';
font-style: normal;
font-weight: 400;
src: url('mailspring://custom-fonts/fonts/Custom-Normal.otf');
}
@font-face {
font-family: 'Nylas-Pro';
font-style: normal;
font-weight: 500;
src: url('mailspring://custom-fonts/fonts/Custom-Medium.otf');
}
@font-face {
font-family: 'Nylas-Pro';
font-style: normal;
font-weight: 600;
src: url('mailspring://custom-fonts/fonts/Custom-SemiBold.otf');
}
// 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;
}