{"action":"created","issue":{"url":"https://api.github.com/repos/adobe/brackets/issues/10680","labels_url":"https://api.github.com/repos/adobe/brackets/issues/10680/labels{/name}","comments_url":"https://api.github.com/repos/adobe/brackets/issues/10680/comments","events_url":"https://api.github.com/repos/adobe/brackets/issues/10680/events","html_url":"https://github.com/adobe/brackets/issues/10680","id":59672831,"number":10680,"title":"improve the font loading CSS","user":{"login":"Pomax","id":177243,"avatar_url":"https://avatars.githubusercontent.com/u/177243?v=3","gravatar_id":"","url":"https://api.github.com/users/Pomax","html_url":"https://github.com/Pomax","followers_url":"https://api.github.com/users/Pomax/followers","following_url":"https://api.github.com/users/Pomax/following{/other_user}","gists_url":"https://api.github.com/users/Pomax/gists{/gist_id}","starred_url":"https://api.github.com/users/Pomax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pomax/subscriptions","organizations_url":"https://api.github.com/users/Pomax/orgs","repos_url":"https://api.github.com/users/Pomax/repos","events_url":"https://api.github.com/users/Pomax/events{/privacy}","received_events_url":"https://api.github.com/users/Pomax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-03T17:09:26Z","updated_at":"2015-03-03T22:44:07Z","closed_at":null,"body":"The font loading CSS on `src/styles/brackets_fonts.less` currently outright loads a set of `.ttf` fonts, rather than first checking whether the fonts are available on the local system, and if not, trying to load the WOFF versions, with otf fallback (and an eot shortcut in case IE is involved, so it doesn't download everything even after finding something it supports). Loading the ttf versions for fonts that are inherently CFF/OpenType is kind of weird, especially since this is an Adobe project =)\r\n\r\nHave a look at the fontsquirrel/bulletproof CSS (https://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax etc.) for a sensible load ordering, and make sure to also add in a local url as first check in case people actually already have Source Pro locally installed?"},"comment":{"url":"https://api.github.com/repos/adobe/brackets/issues/comments/77054702","html_url":"https://github.com/adobe/brackets/issues/10680#issuecomment-77054702","issue_url":"https://api.github.com/repos/adobe/brackets/issues/10680","id":77054702,"user":{"login":"peterflynn","id":1197510,"avatar_url":"https://avatars.githubusercontent.com/u/1197510?v=3","gravatar_id":"","url":"https://api.github.com/users/peterflynn","html_url":"https://github.com/peterflynn","followers_url":"https://api.github.com/users/peterflynn/followers","following_url":"https://api.github.com/users/peterflynn/following{/other_user}","gists_url":"https://api.github.com/users/peterflynn/gists{/gist_id}","starred_url":"https://api.github.com/users/peterflynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterflynn/subscriptions","organizations_url":"https://api.github.com/users/peterflynn/orgs","repos_url":"https://api.github.com/users/peterflynn/repos","events_url":"https://api.github.com/users/peterflynn/events{/privacy}","received_events_url":"https://api.github.com/users/peterflynn/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T22:44:07Z","updated_at":"2015-03-03T22:44:07Z","body":"How would we check whether or not a font is available locally?  That might be more trouble than it's worth, especially since these particular fonts seem unlikely to be installed locally.\r\n\r\nI know we had some rendering fidelity issues with non-TTF webfonts in the past.  A lot has changed since then, but we should still be cautious -- perhaps someone could post PNGs for comparison, from both Mac & Win running on the current brackets-shell?"}}