{"action":"opened","issue":{"url":"https://api.github.com/repos/thoughtbot/bourbon/issues/658","labels_url":"https://api.github.com/repos/thoughtbot/bourbon/issues/658/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/bourbon/issues/658/comments","events_url":"https://api.github.com/repos/thoughtbot/bourbon/issues/658/events","html_url":"https://github.com/thoughtbot/bourbon/issues/658","id":55972740,"number":658,"title":"font-face mixin always outputs all font formats","user":{"login":"vivianspencer","id":1244803,"avatar_url":"https://avatars.githubusercontent.com/u/1244803?v=3","gravatar_id":"","url":"https://api.github.com/users/vivianspencer","html_url":"https://github.com/vivianspencer","followers_url":"https://api.github.com/users/vivianspencer/followers","following_url":"https://api.github.com/users/vivianspencer/following{/other_user}","gists_url":"https://api.github.com/users/vivianspencer/gists{/gist_id}","starred_url":"https://api.github.com/users/vivianspencer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivianspencer/subscriptions","organizations_url":"https://api.github.com/users/vivianspencer/orgs","repos_url":"https://api.github.com/users/vivianspencer/repos","events_url":"https://api.github.com/users/vivianspencer/events{/privacy}","received_events_url":"https://api.github.com/users/vivianspencer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-29T23:22:50Z","updated_at":"2015-01-29T23:22:50Z","closed_at":null,"body":"When using the font-face mixin with the $font-formats variable, the formats specified in the variable are not respected. Instead all of the formats are always output.\r\n\r\nSee my gist as a reference: https://gist.github.com/vivianspencer/c2ad9b790bb744c9dce4\r\n\r\nI believe the issue lies with the \"contains\" function used here: https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/helpers/_font-source-declaration.scss#L31.\r\n\r\nI believe instead this should be the \"index\" function:\r\n\r\n```sass\r\n...\r\n);\r\n\r\n  @each $key, $values in $formats-map {\r\n    @if index($file-formats, $key) {\r\n      $file-path: nth($values, 1);\r\n      $font-format: nth($values, 2);\r\n...\r\n```"}}