{"action":"created","issue":{"url":"https://api.github.com/repos/atom/language-gfm/issues/69","labels_url":"https://api.github.com/repos/atom/language-gfm/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/atom/language-gfm/issues/69/comments","events_url":"https://api.github.com/repos/atom/language-gfm/issues/69/events","html_url":"https://github.com/atom/language-gfm/issues/69","id":53988963,"number":69,"title":"Add font selection to package specific package","user":{"login":"nylki","id":1710598,"avatar_url":"https://avatars.githubusercontent.com/u/1710598?v=3","gravatar_id":"","url":"https://api.github.com/users/nylki","html_url":"https://github.com/nylki","followers_url":"https://api.github.com/users/nylki/followers","following_url":"https://api.github.com/users/nylki/following{/other_user}","gists_url":"https://api.github.com/users/nylki/gists{/gist_id}","starred_url":"https://api.github.com/users/nylki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nylki/subscriptions","organizations_url":"https://api.github.com/users/nylki/orgs","repos_url":"https://api.github.com/users/nylki/repos","events_url":"https://api.github.com/users/nylki/events{/privacy}","received_events_url":"https://api.github.com/users/nylki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-11T11:18:57Z","updated_at":"2015-01-13T12:17:22Z","closed_at":null,"body":"If it's possible, I'd like to be able to specify a different font when working with markdown files (for example a serif font).\r\nIs this in the scope of *language-gfm* or would that be a more general part of atom (for all packages' settings)?"},"comment":{"url":"https://api.github.com/repos/atom/language-gfm/issues/comments/69736262","html_url":"https://github.com/atom/language-gfm/issues/69#issuecomment-69736262","issue_url":"https://api.github.com/repos/atom/language-gfm/issues/69","id":69736262,"user":{"login":"braver","id":2543659,"avatar_url":"https://avatars.githubusercontent.com/u/2543659?v=3","gravatar_id":"","url":"https://api.github.com/users/braver","html_url":"https://github.com/braver","followers_url":"https://api.github.com/users/braver/followers","following_url":"https://api.github.com/users/braver/following{/other_user}","gists_url":"https://api.github.com/users/braver/gists{/gist_id}","starred_url":"https://api.github.com/users/braver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braver/subscriptions","organizations_url":"https://api.github.com/users/braver/orgs","repos_url":"https://api.github.com/users/braver/repos","events_url":"https://api.github.com/users/braver/events{/privacy}","received_events_url":"https://api.github.com/users/braver/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T12:17:22Z","updated_at":"2015-01-13T12:17:22Z","body":"You can already do that! The current grammar is set in a data-attribute and you can style that\r\n\r\n```\r\natom-text-editor[data-grammar=\"source gfm\"],\r\natom-text-editor[data-grammar=\"source gfm\"]::shadow {\r\n    font-family: Courier;\r\n}\r\n```\r\n\r\nSeems to work fine. I tried a bunch of different fonts as my default and it picks up on the different dimensions of Courier just fine each time I switch to a markdown file or switch syntaxes. As long as you pick monospaced fonts that are installed on the system you're fine.\r\n\r\nThe challenge is mostly in defining fonts that are available on every platform. I wouldn't be able to say what choices you have for a serif monospace font on Linux for instance. \r\n\r\nIt's possible to serve fonts from a syntax-theme package with `@font-face`, but that wrecks the measurements. Chromium postpones loading the font so Atom won't know the dimensions in time. I kinda fixed that in my [fonts package](https://github.com/braver/fonts/issues/2) but it's messy."}}