{"action":"created","issue":{"url":"https://api.github.com/repos/chrissimpkins/Hack/issues/100","labels_url":"https://api.github.com/repos/chrissimpkins/Hack/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/chrissimpkins/Hack/issues/100/comments","events_url":"https://api.github.com/repos/chrissimpkins/Hack/issues/100/events","html_url":"https://github.com/chrissimpkins/Hack/issues/100","id":106256838,"number":100,"title":"Underscores disappearing in IDEA IDEs (Hack-v2_013-ttf)","user":{"login":"tbrisbane","id":12590804,"avatar_url":"https://avatars.githubusercontent.com/u/12590804?v=3","gravatar_id":"","url":"https://api.github.com/users/tbrisbane","html_url":"https://github.com/tbrisbane","followers_url":"https://api.github.com/users/tbrisbane/followers","following_url":"https://api.github.com/users/tbrisbane/following{/other_user}","gists_url":"https://api.github.com/users/tbrisbane/gists{/gist_id}","starred_url":"https://api.github.com/users/tbrisbane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbrisbane/subscriptions","organizations_url":"https://api.github.com/users/tbrisbane/orgs","repos_url":"https://api.github.com/users/tbrisbane/repos","events_url":"https://api.github.com/users/tbrisbane/events{/privacy}","received_events_url":"https://api.github.com/users/tbrisbane/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrissimpkins/Hack/labels/Design","name":"Design","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-14T01:49:23Z","updated_at":"2015-09-19T11:33:57Z","closed_at":null,"body":"I've noticed that within IDEA IDEs (I've noticed this on both IntelliJ and PyCharm so far), underscores seem to be disappearing in what appears to be an issue related to how IDEA handles redraw regions for the caret's current line.\r\n\r\nNote in the following screenshot how the caret's current line is highlighted, and the underscores are visible:\r\n![capture](https://cloud.githubusercontent.com/assets/12590804/9840336/c2f49e30-5ad3-11e5-8a0f-119847495547.PNG)\r\n\r\nHack is designed such that underscores appear on the top-most pixels of the next line down. When the caret is moved down to the next line, the line highlighting follows it, and the underscores disappear:\r\n![capture2](https://cloud.githubusercontent.com/assets/12590804/9840372/777ad3d8-5ad4-11e5-8c28-41e22ffa540d.PNG)\r\n\r\nWhat I suspect is happening is that IDEA is redrawing the current line after the caret moves down, (firstly the background to remove the line highlighting, then the text), but is NOT redrawing the line above. The result is that due to the underscores of the above line being within the redraw region of the current (highlighted) line, they get removed when the current line's background is redrawn to remove its highlighting."},"comment":{"url":"https://api.github.com/repos/chrissimpkins/Hack/issues/comments/141653512","html_url":"https://github.com/chrissimpkins/Hack/issues/100#issuecomment-141653512","issue_url":"https://api.github.com/repos/chrissimpkins/Hack/issues/100","id":141653512,"user":{"login":"tbrisbane","id":12590804,"avatar_url":"https://avatars.githubusercontent.com/u/12590804?v=3","gravatar_id":"","url":"https://api.github.com/users/tbrisbane","html_url":"https://github.com/tbrisbane","followers_url":"https://api.github.com/users/tbrisbane/followers","following_url":"https://api.github.com/users/tbrisbane/following{/other_user}","gists_url":"https://api.github.com/users/tbrisbane/gists{/gist_id}","starred_url":"https://api.github.com/users/tbrisbane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbrisbane/subscriptions","organizations_url":"https://api.github.com/users/tbrisbane/orgs","repos_url":"https://api.github.com/users/tbrisbane/repos","events_url":"https://api.github.com/users/tbrisbane/events{/privacy}","received_events_url":"https://api.github.com/users/tbrisbane/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T11:33:57Z","updated_at":"2015-09-19T11:33:57Z","body":"@chrissimpkins The width looks fine to me. :)\r\n\r\nWith regards to your planned fix for underscores - note that lower-case 'p' characters also lose their bottom-most pixels as mentioned by @Huddo121. I suspect the same will be true of any character with a low tail (lower-case 'y' would also be a good example), so if this isn't in fact a problem with IDEA's font handling, you may be looking at a 1px upwards bump for all glyphs in order to maintain consistency."}}