$font-path: '../../ocean/fonts';

$regular: normal, normal;

$osvaldo: (
    osvaldo-regular: $regular
);

@each $fontname, $style in $osvaldo {
    @font-face {
        font-family: 'Osvaldo';
        src: url('#{$font-path}/osvaldo/#{$fontname}.eot'); /* IE9 Compat Modes */
        src: url('#{$font-path}/osvaldo/#{$fontname}.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
             url('#{$font-path}/osvaldo/#{$fontname}.woff2') format('woff2'), /* Super Modern Browsers */
             url('#{$font-path}/osvaldo/#{$fontname}.woff') format('woff'), /* Modern Browsers */
             url('#{$font-path}/osvaldo/#{$fontname}.ttf') format('truetype'), /* Safari, Android, iOS */
             url('#{$font-path}/osvaldo/#{$fontname}.svg##{$fontname}') format('svg'); /* Legacy iOS */
        font-weight: nth($style, 1);
        font-style:  nth($style, 2);
    }
}