{"action":"created","issue":{"url":"https://api.github.com/repos/blitz-research/monkey2/issues/347","repository_url":"https://api.github.com/repos/blitz-research/monkey2","labels_url":"https://api.github.com/repos/blitz-research/monkey2/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/blitz-research/monkey2/issues/347/comments","events_url":"https://api.github.com/repos/blitz-research/monkey2/issues/347/events","html_url":"https://github.com/blitz-research/monkey2/issues/347","id":301975843,"number":347,"title":"TextView - Invisible chars if font not support them","user":{"login":"engor","id":5233803,"avatar_url":"https://avatars1.githubusercontent.com/u/5233803?v=4","gravatar_id":"","url":"https://api.github.com/users/engor","html_url":"https://github.com/engor","followers_url":"https://api.github.com/users/engor/followers","following_url":"https://api.github.com/users/engor/following{/other_user}","gists_url":"https://api.github.com/users/engor/gists{/gist_id}","starred_url":"https://api.github.com/users/engor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/engor/subscriptions","organizations_url":"https://api.github.com/users/engor/orgs","repos_url":"https://api.github.com/users/engor/repos","events_url":"https://api.github.com/users/engor/events{/privacy}","received_events_url":"https://api.github.com/users/engor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-03T07:12:43Z","updated_at":"2018-03-04T20:24:37Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"If we use font that not support typed char - we see nothing in textview but chars are here! \r\nIf you typed 10 invisible chars then you need to press arrow left 10 times to be at the beginning of line.\r\n\r\nSolution is to render rect meaning 'unknown char'.\r\n\r\nHow to reproduce:\r\n* Run latest dev version of ted2go\r\n* Choose any of Prime theme \r\n* Create new document\r\n* Insert russian chars, for example \"Привет\" (with quotes or not).\r\n\r\nFonts in ted2go:  \r\nv1.10 - \"MesloLGSDZ-Bold.ttf,18\"\r\ndev - \"SourceCodePro-Medium.ttf,19\""},"comment":{"url":"https://api.github.com/repos/blitz-research/monkey2/issues/comments/370260833","html_url":"https://github.com/blitz-research/monkey2/issues/347#issuecomment-370260833","issue_url":"https://api.github.com/repos/blitz-research/monkey2/issues/347","id":370260833,"user":{"login":"blitz-research","id":3487554,"avatar_url":"https://avatars1.githubusercontent.com/u/3487554?v=4","gravatar_id":"","url":"https://api.github.com/users/blitz-research","html_url":"https://github.com/blitz-research","followers_url":"https://api.github.com/users/blitz-research/followers","following_url":"https://api.github.com/users/blitz-research/following{/other_user}","gists_url":"https://api.github.com/users/blitz-research/gists{/gist_id}","starred_url":"https://api.github.com/users/blitz-research/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blitz-research/subscriptions","organizations_url":"https://api.github.com/users/blitz-research/orgs","repos_url":"https://api.github.com/users/blitz-research/repos","events_url":"https://api.github.com/users/blitz-research/events{/privacy}","received_events_url":"https://api.github.com/users/blitz-research/received_events","type":"User","site_admin":false},"created_at":"2018-03-04T20:24:37Z","updated_at":"2018-03-04T20:24:37Z","author_association":"OWNER","body":"This  appears to be an issue with the SourceCodePro font. According to the truetype tutorial/docs:\r\n\r\nhttps://www.freetype.org/freetype2/docs/tutorial/step1.html\r\n\r\n\"when a given character code has no glyph image in the face, value 0 is returned. By convention, it always corresponds to a special glyph image called the missing glyph, which is commonly displayed as a box or a space.\"\r\n\r\nSo you're meant to use glyph 0 to render 'missing' chars, and in all fonts I've tested so far, this is the common 'empty box' glyph - except for source code pro where it's width is 0 so it's 'nothing'.\r\n\r\nThe only way I can think of to fix this is to fudge around the 0 width - say, using the width of a space char or something?\r\n\r\nNot this has nothing to do with the unicode 'replacement' char - it's a glyph level thing. Indeed, testing indicates char $fffd maps to glyph 0 too, as it should. But glyph 0 is broken in source code pro.\r\n\r\n\r\n"}}
{"actor":{"display_login":"blitz-research"}}