{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/826","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/826/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/826/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/826/events","html_url":"https://github.com/RocketChat/Rocket.Chat/pull/826","id":106904118,"number":826,"title":"Serve Google fonts locally instead of referencing Google servers.","user":{"login":"rwakida","id":5505749,"avatar_url":"https://avatars.githubusercontent.com/u/5505749?v=3","gravatar_id":"","url":"https://api.github.com/users/rwakida","html_url":"https://github.com/rwakida","followers_url":"https://api.github.com/users/rwakida/followers","following_url":"https://api.github.com/users/rwakida/following{/other_user}","gists_url":"https://api.github.com/users/rwakida/gists{/gist_id}","starred_url":"https://api.github.com/users/rwakida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwakida/subscriptions","organizations_url":"https://api.github.com/users/rwakida/orgs","repos_url":"https://api.github.com/users/rwakida/repos","events_url":"https://api.github.com/users/rwakida/events{/privacy}","received_events_url":"https://api.github.com/users/rwakida/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-17T03:12:34Z","updated_at":"2015-10-02T23:24:03Z","closed_at":"2015-09-17T05:32:02Z","pull_request":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/826","html_url":"https://github.com/RocketChat/Rocket.Chat/pull/826","diff_url":"https://github.com/RocketChat/Rocket.Chat/pull/826.diff","patch_url":"https://github.com/RocketChat/Rocket.Chat/pull/826.patch"},"body":"Fix #688.  Based on issue #688 advice, used webfont-dl to download roboto font and\r\nmodified base stylesheet to reference roboto locally instead of\r\nreferencing Google hosted version.\r\n\r\nUsed webfont-dl with url (originally declared in base.less.)\r\nhttp://fonts.googleapis.com/css?family=Roboto:300,400,500,600,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic\r\nto download Roboto font to local directory. The url requests 300,400,500,600, and 700, but it looks like only 300,400,500, and 700 are supported.\r\n\r\nTested using Firefox.  Removed external url @import, cleared cache and saw non-roboto font displayed.  Also did not see external network requests for the font.  Added @import for local_font.import.less that referenced local fonts, restarted, and saw roboto font displayed.  \r\n\r\nwithout referencing downloaded fonts:\r\n<img width=\"269\" alt=\"no_import_fonts\" src=\"https://cloud.githubusercontent.com/assets/5505749/9923817/0f5c0796-5c95-11e5-92fd-d61b0e51e1e2.png\">\r\n\r\nwith reference to downloaded fonts:\r\n<img width=\"260\" alt=\"with_import_fonts\" src=\"https://cloud.githubusercontent.com/assets/5505749/9923830/29888af4-5c95-11e5-8712-a472c050ebb0.png\">\r\n\r\nI tried testing with Chrome, but it always showed Roboto font even if I cleared/disabled cache.  The only way I could confirm is by checking the network requests thought the web console.  "},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments/145181949","html_url":"https://github.com/RocketChat/Rocket.Chat/pull/826#issuecomment-145181949","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/826","id":145181949,"user":{"login":"rwakida","id":5505749,"avatar_url":"https://avatars.githubusercontent.com/u/5505749?v=3","gravatar_id":"","url":"https://api.github.com/users/rwakida","html_url":"https://github.com/rwakida","followers_url":"https://api.github.com/users/rwakida/followers","following_url":"https://api.github.com/users/rwakida/following{/other_user}","gists_url":"https://api.github.com/users/rwakida/gists{/gist_id}","starred_url":"https://api.github.com/users/rwakida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwakida/subscriptions","organizations_url":"https://api.github.com/users/rwakida/orgs","repos_url":"https://api.github.com/users/rwakida/repos","events_url":"https://api.github.com/users/rwakida/events{/privacy}","received_events_url":"https://api.github.com/users/rwakida/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T23:24:03Z","updated_at":"2015-10-02T23:24:03Z","body":"Hi @mhkeller, I tested using the latest from master and didn't see a request in privacy badger. Can another @RocketChat/owners please test.  \r\n<img width=\"1335\" alt=\"screenshot\" src=\"https://cloud.githubusercontent.com/assets/5505749/10259834/b31b763a-6908-11e5-9ceb-1197f00faac2.png\">\r\n"}}