// =============================================================================
// Base -> Mixins -> @font-face
// =============================================================================

//
// Bulletproof @font-face delcarations
//
// @link http://cbrac.co/1KgTgCb
//

.font-face(@ff-name, @ff-file, @ff-weight:normal, @ff-style:normal) {
  font-family: "@{ff-name}";
  src: url("@{ff-file}.eot");
  src: url("@{ff-file}.eot?#iefix") format("embedded-opentype"),
       url("@{ff-file}.woff") format("woff"),
       url("@{ff-file}.ttf") format("truetype"),
       url("@{ff-file}.svg#@{ff-name}") format("svg");
  font-weight: @ff-weight;
  font-style: @ff-style;

  //
  // Chrome for Windows rendering fix
  //
  // @link http://cbrac.co/U4mSbc
  //

  @media screen and (-webkit-min-device-pixel-ratio: 0) {
    @font-face {
      font-family: "@{ff-name}";
      src: url("@{ff-file}.svg#@{ff-name}") format("svg");
    }
  }
}
