react-redux-starter-kit icon indicating copy to clipboard operation
react-redux-starter-kit copied to clipboard

sass loader & fonts

Open saidkholov opened this issue 10 years ago • 1 comments

New fonts are not working in safari or chrome. Working fine in firefox. Not sure why... When final css is genarated there are no quotes around font name, perhaps this can be an issue

$font-directory: '../static/fonts';
@font-face {
  font-family: 'open_sansregular';
  src: url('#{$font-directory}/open-sans.regular-webfont.eot');
  src: url('#{$font-directory}/open-sans.regular-webfont.eot?#iefix') format('embedded-opentype'),
  url('#{$font-directory}/open-sans.regular-webfont.woff2') url('#{$font-directory}/open-sans.regular-webfont.woff'),
  format('woff2') format('woff'),
  url('#{$font-directory}/open-sans.regular-webfont.ttf') format('truetype'),
  url('#{$font-directory}/open-sans.regular-webfont.svg#open_sansregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

loading this font core.scss

saidkholov avatar Apr 23 '16 11:04 saidkholov

oh the porblem was with font weights. all good now, cheers

saidkholov avatar Apr 23 '16 12:04 saidkholov