///////////////////////
// FONTS
////
// all font-face rules should go here
// 

// Font-face mixin
@mixin font-face($family, $path, $svg, $weight: normal, $style: normal, $ascent_override: 100%, $descent_override: 100%)
    @font-face
        font-family: $family
        src: url('#{$path}.eot')
        src: url('#{$path}.eot?#iefix') format('embedded-opentype'), url('#{$path}.woff2') format('woff2'), url('#{$path}.woff') format('woff'), url('#{$path}.ttf') format('truetype'), url('#{$path}.svg##{$svg}') format('svg')
        font-weight: $weight
        font-style: $style
        ascent-override: $ascent_override
        descent-override: $descent_override

@include font-face('Avenir Next', './fonts/avenir-next/AvenirNext-Regular', 'AvenirNext-Regular', 400, normal, 100%, 50%)
@include font-face('Avenir Next', './fonts/avenir-next/AvenirNext-Italic', 'AvenirNext-Italic', 400, italic, 100%, 50%)
@include font-face('Avenir Next', './fonts/avenir-next/AvenirNext-Medium', 'AvenirNext-Medium', 500, normal, 100%, 50%)
@include font-face('Avenir Next', './fonts/avenir-next/AvenirNext-DemiBold', 'AvenirNext-DemiBold', 600, normal, 100%, 50%)

@include font-face('Khmer MN', './fonts/khmer-mn/KhmerMN', 'KhmerMN', 400, normal, 100%, 50%)
@include font-face('Khmer MN', './fonts/khmer-mn/KhmerMN-Bold', 'KhmerMN-Bold', 700, normal, 100%, 50%)
