{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/26151","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/26151/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/26151/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/26151/events","html_url":"https://github.com/Microsoft/vscode/issues/26151","id":226840144,"number":26151,"title":"Zoom offsets the visible cursor","user":{"login":"W4RH4WK","id":328798,"avatar_url":"https://avatars3.githubusercontent.com/u/328798?v=3","gravatar_id":"","url":"https://api.github.com/users/W4RH4WK","html_url":"https://github.com/W4RH4WK","followers_url":"https://api.github.com/users/W4RH4WK/followers","following_url":"https://api.github.com/users/W4RH4WK/following{/other_user}","gists_url":"https://api.github.com/users/W4RH4WK/gists{/gist_id}","starred_url":"https://api.github.com/users/W4RH4WK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/W4RH4WK/subscriptions","organizations_url":"https://api.github.com/users/W4RH4WK/orgs","repos_url":"https://api.github.com/users/W4RH4WK/repos","events_url":"https://api.github.com/users/W4RH4WK/events{/privacy}","received_events_url":"https://api.github.com/users/W4RH4WK/received_events","type":"User","site_admin":false},"labels":[{"id":425577013,"url":"https://api.github.com/repos/Microsoft/vscode/labels/editor-core","name":"editor-core","color":"c5def5","default":false},{"id":321092510,"url":"https://api.github.com/repos/Microsoft/vscode/labels/linux","name":"linux","color":"006b75","default":false},{"id":272689423,"url":"https://api.github.com/repos/Microsoft/vscode/labels/needs%20more%20info","name":"needs more info","color":"708090","default":false},{"id":441065763,"url":"https://api.github.com/repos/Microsoft/vscode/labels/zoom","name":"zoom","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":{"login":"alexandrudima","id":5047891,"avatar_url":"https://avatars0.githubusercontent.com/u/5047891?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandrudima","html_url":"https://github.com/alexandrudima","followers_url":"https://api.github.com/users/alexandrudima/followers","following_url":"https://api.github.com/users/alexandrudima/following{/other_user}","gists_url":"https://api.github.com/users/alexandrudima/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrudima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrudima/subscriptions","organizations_url":"https://api.github.com/users/alexandrudima/orgs","repos_url":"https://api.github.com/users/alexandrudima/repos","events_url":"https://api.github.com/users/alexandrudima/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrudima/received_events","type":"User","site_admin":false},"assignees":[{"login":"alexandrudima","id":5047891,"avatar_url":"https://avatars0.githubusercontent.com/u/5047891?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandrudima","html_url":"https://github.com/alexandrudima","followers_url":"https://api.github.com/users/alexandrudima/followers","following_url":"https://api.github.com/users/alexandrudima/following{/other_user}","gists_url":"https://api.github.com/users/alexandrudima/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrudima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrudima/subscriptions","organizations_url":"https://api.github.com/users/alexandrudima/orgs","repos_url":"https://api.github.com/users/alexandrudima/repos","events_url":"https://api.github.com/users/alexandrudima/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrudima/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Microsoft/vscode/milestones/27","html_url":"https://github.com/Microsoft/vscode/milestone/27","labels_url":"https://api.github.com/repos/Microsoft/vscode/milestones/27/labels","id":1951901,"number":27,"title":"On Deck","description":"The Issues assigned to the **On Deck** milestone under consideration for the upcoming milestones.\r\nOur goal is to always have less than 100 Issues on deck.","creator":{"login":"egamma","id":172399,"avatar_url":"https://avatars2.githubusercontent.com/u/172399?v=3","gravatar_id":"","url":"https://api.github.com/users/egamma","html_url":"https://github.com/egamma","followers_url":"https://api.github.com/users/egamma/followers","following_url":"https://api.github.com/users/egamma/following{/other_user}","gists_url":"https://api.github.com/users/egamma/gists{/gist_id}","starred_url":"https://api.github.com/users/egamma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egamma/subscriptions","organizations_url":"https://api.github.com/users/egamma/orgs","repos_url":"https://api.github.com/users/egamma/repos","events_url":"https://api.github.com/users/egamma/events{/privacy}","received_events_url":"https://api.github.com/users/egamma/received_events","type":"User","site_admin":false},"open_issues":37,"closed_issues":1,"state":"open","created_at":"2016-08-19T16:02:12Z","updated_at":"2017-05-08T21:33:07Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2017-05-07T08:33:37Z","updated_at":"2017-05-09T12:06:33Z","closed_at":null,"body":"I recently noticed a bug where the visible editing cursor and selection are offset to where VSCode thinks the cursor is. This happens when zooming in and seems to be dependent on the font you are using.\r\n\r\nThe bug happens for me when using the [Hack Font](http://sourcefoundry.org/hack/) under Linux. Using that font under Windows did not result in an offset of the cursor / selection. Using *Ubuntu Mono* as my font did not trigger the bug, nor was increment the font size instead of zooming.\r\n\r\nThe following pictures illustrate the issue:\r\n\r\nCorrect selection using *Ubuntu Mono*:\\\r\n![no_offset_far_right](https://cloud.githubusercontent.com/assets/328798/25779056/b3b85de2-330f-11e7-8043-e1471577ba4b.png)\r\n\r\nOffset selection using *Hack*:\\\r\n![offset_far_right](https://cloud.githubusercontent.com/assets/328798/25779057/b8b104de-330f-11e7-87bd-31790e2222c6.png)\r\n\r\nIn both cases `node.getRight()` has been selected and hitting backspace will delete it.\r\n\r\nThis also happens around the 80 column mark, not just far to the right, note the cursor ontop of the equal sign:\\\r\n![offset](https://cloud.githubusercontent.com/assets/328798/25779077/58445bf4-3310-11e7-996d-e100be8ea3b0.png)\r\n\r\n\r\n- VSCode Version: 1.12.1\r\n- OS Version: Ubuntu 16.04 LTS\r\n\r\nSteps to Reproduce:\r\n\r\n1. Setup VSCode to use Hack as font.\r\n2. Open a file with content.\r\n3. Zoom (bug may only trigger on some zoom levels).\r\n4. Select text.\r\n\r\nMaybe Related:\r\n- #22181\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/300143157","html_url":"https://github.com/Microsoft/vscode/issues/26151#issuecomment-300143157","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/26151","id":300143157,"user":{"login":"W4RH4WK","id":328798,"avatar_url":"https://avatars3.githubusercontent.com/u/328798?v=3","gravatar_id":"","url":"https://api.github.com/users/W4RH4WK","html_url":"https://github.com/W4RH4WK","followers_url":"https://api.github.com/users/W4RH4WK/followers","following_url":"https://api.github.com/users/W4RH4WK/following{/other_user}","gists_url":"https://api.github.com/users/W4RH4WK/gists{/gist_id}","starred_url":"https://api.github.com/users/W4RH4WK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/W4RH4WK/subscriptions","organizations_url":"https://api.github.com/users/W4RH4WK/orgs","repos_url":"https://api.github.com/users/W4RH4WK/repos","events_url":"https://api.github.com/users/W4RH4WK/events{/privacy}","received_events_url":"https://api.github.com/users/W4RH4WK/received_events","type":"User","site_admin":false},"created_at":"2017-05-09T12:06:32Z","updated_at":"2017-05-09T12:06:32Z","body":"When I took the screenshot I had the following settings:\r\n```json\r\n{\r\n    \"editor.fontFamily\": \"Hack\",\r\n    \"editor.fontSize\": 16,\r\n    \"window.zoomLevel\": 4\r\n}\r\n```\r\nI am on Ubuntu 16.04 too and uploaded the file I used as example <https://gist.github.com/W4RH4WK/caeabf814c482d660b3f4c8f92a278a3>"}}
{"actor":{"display_login":"W4RH4WK"}}