{"action":"created","issue":{"url":"https://api.github.com/repos/eosrei/emojione-color-font/issues/40","repository_url":"https://api.github.com/repos/eosrei/emojione-color-font","labels_url":"https://api.github.com/repos/eosrei/emojione-color-font/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/eosrei/emojione-color-font/issues/40/comments","events_url":"https://api.github.com/repos/eosrei/emojione-color-font/issues/40/events","html_url":"https://github.com/eosrei/emojione-color-font/issues/40","id":159671804,"number":40,"title":"[Linux] Inconsistently parsed fontconfig causes font selection problems","user":{"login":"eosrei","id":195061,"avatar_url":"https://avatars.githubusercontent.com/u/195061?v=3","gravatar_id":"","url":"https://api.github.com/users/eosrei","html_url":"https://github.com/eosrei","followers_url":"https://api.github.com/users/eosrei/followers","following_url":"https://api.github.com/users/eosrei/following{/other_user}","gists_url":"https://api.github.com/users/eosrei/gists{/gist_id}","starred_url":"https://api.github.com/users/eosrei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eosrei/subscriptions","organizations_url":"https://api.github.com/users/eosrei/orgs","repos_url":"https://api.github.com/users/eosrei/repos","events_url":"https://api.github.com/users/eosrei/events{/privacy}","received_events_url":"https://api.github.com/users/eosrei/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eosrei/emojione-color-font/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/eosrei/emojione-color-font/labels/fontconfig","name":"fontconfig","color":"006b75"},{"url":"https://api.github.com/repos/eosrei/emojione-color-font/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":{"login":"eosrei","id":195061,"avatar_url":"https://avatars.githubusercontent.com/u/195061?v=3","gravatar_id":"","url":"https://api.github.com/users/eosrei","html_url":"https://github.com/eosrei","followers_url":"https://api.github.com/users/eosrei/followers","following_url":"https://api.github.com/users/eosrei/following{/other_user}","gists_url":"https://api.github.com/users/eosrei/gists{/gist_id}","starred_url":"https://api.github.com/users/eosrei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eosrei/subscriptions","organizations_url":"https://api.github.com/users/eosrei/orgs","repos_url":"https://api.github.com/users/eosrei/repos","events_url":"https://api.github.com/users/eosrei/events{/privacy}","received_events_url":"https://api.github.com/users/eosrei/received_events","type":"User","site_admin":false},"assignees":[{"login":"eosrei","id":195061,"avatar_url":"https://avatars.githubusercontent.com/u/195061?v=3","gravatar_id":"","url":"https://api.github.com/users/eosrei","html_url":"https://github.com/eosrei","followers_url":"https://api.github.com/users/eosrei/followers","following_url":"https://api.github.com/users/eosrei/following{/other_user}","gists_url":"https://api.github.com/users/eosrei/gists{/gist_id}","starred_url":"https://api.github.com/users/eosrei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eosrei/subscriptions","organizations_url":"https://api.github.com/users/eosrei/orgs","repos_url":"https://api.github.com/users/eosrei/repos","events_url":"https://api.github.com/users/eosrei/events{/privacy}","received_events_url":"https://api.github.com/users/eosrei/received_events","type":"User","site_admin":false}],"milestone":null,"comments":24,"created_at":"2016-06-10T16:20:59Z","updated_at":"2016-08-11T17:42:45Z","closed_at":null,"body":"The Fontconfig Edit Mode: `prepend_first` is, probably, causing a number of font selection issues #35, #37, and #39. The existing/provided configuration is *technically* correct according to all tests I've tried, but it is still causing problems in programs which parse the fontconfig themselves. Issue: `prepend_first` does not work as expected in fontconfig. \r\n\r\nActual `56-emojione-color.conf`\r\n```xml\r\n  <match target=\"pattern\">\r\n    <!-- If the requested font is sans-serif -->\r\n    <test qual=\"any\" name=\"family\">\r\n        <string>sans-serif</string>\r\n    </test>\r\n    <!-- Make Bitstream Vera Sans the first result -->\r\n    <edit name=\"family\" mode=\"prepend_first\"> \r\n      <string>Bitstream Vera Sans</string>\r\n    </edit>\r\n    <!-- Followed by EmojiOne Color -->\r\n    <edit name=\"family\" mode=\"prepend_first\">     <!-- THIS! -->\r\n      <string>EmojiOne Color</string>\r\n    </edit>\r\n  </match>\r\n```\r\nActual Result:\r\n```\r\n$ fc-match -s sans\r\nVera.ttf: \"Bitstream Vera Sans\" \"Roman\"\r\nEmojiOneColor-SVGinOT.ttf: \"EmojiOne Color\" \"Regular\"\r\nDejaVuSans.ttf: \"DejaVu Sans\" \"Book\"\r\n```\r\n*Expected*, Result:\r\n```\r\n$ fc-match -s sans\r\nEmojiOneColor-SVGinOT.ttf: \"EmojiOne Color\" \"Regular\"\r\nVera.ttf: \"Bitstream Vera Sans\" \"Roman\"\r\nDejaVuSans.ttf: \"DejaVu Sans\" \"Book\"\r\n```\r\n\r\nWhy the \"Expected Result\"? `prepend_first` seems like it would be applied in order, so the first font listed would become the second font in the list when a second `prepend_first` is encountered. It doesn't work that way though. The first font stays the first font. \r\n\r\nNeed to find a configuration that works for everything.\r\n"},"comment":{"url":"https://api.github.com/repos/eosrei/emojione-color-font/issues/comments/239235400","html_url":"https://github.com/eosrei/emojione-color-font/issues/40#issuecomment-239235400","issue_url":"https://api.github.com/repos/eosrei/emojione-color-font/issues/40","id":239235400,"user":{"login":"eosrei","id":195061,"avatar_url":"https://avatars.githubusercontent.com/u/195061?v=3","gravatar_id":"","url":"https://api.github.com/users/eosrei","html_url":"https://github.com/eosrei","followers_url":"https://api.github.com/users/eosrei/followers","following_url":"https://api.github.com/users/eosrei/following{/other_user}","gists_url":"https://api.github.com/users/eosrei/gists{/gist_id}","starred_url":"https://api.github.com/users/eosrei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eosrei/subscriptions","organizations_url":"https://api.github.com/users/eosrei/orgs","repos_url":"https://api.github.com/users/eosrei/repos","events_url":"https://api.github.com/users/eosrei/events{/privacy}","received_events_url":"https://api.github.com/users/eosrei/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T17:42:45Z","updated_at":"2016-08-11T17:42:45Z","body":"Ah ha! Haha, good point :D"}}
{"actor":{"display_login":"eosrei"}}