{"action":"created","issue":{"url":"https://api.github.com/repos/processing/processing-android/issues/199","repository_url":"https://api.github.com/repos/processing/processing-android","labels_url":"https://api.github.com/repos/processing/processing-android/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/processing/processing-android/issues/199/comments","events_url":"https://api.github.com/repos/processing/processing-android/issues/199/events","html_url":"https://github.com/processing/processing-android/issues/199","id":138706941,"number":199,"title":"Corrupted font rendering in P3D/OPENGL","user":{"login":"wit221","id":8904006,"avatar_url":"https://avatars.githubusercontent.com/u/8904006?v=3","gravatar_id":"","url":"https://api.github.com/users/wit221","html_url":"https://github.com/wit221","followers_url":"https://api.github.com/users/wit221/followers","following_url":"https://api.github.com/users/wit221/following{/other_user}","gists_url":"https://api.github.com/users/wit221/gists{/gist_id}","starred_url":"https://api.github.com/users/wit221/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wit221/subscriptions","organizations_url":"https://api.github.com/users/wit221/orgs","repos_url":"https://api.github.com/users/wit221/repos","events_url":"https://api.github.com/users/wit221/events{/privacy}","received_events_url":"https://api.github.com/users/wit221/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"codeanticode","id":62246,"avatar_url":"https://avatars.githubusercontent.com/u/62246?v=3","gravatar_id":"","url":"https://api.github.com/users/codeanticode","html_url":"https://github.com/codeanticode","followers_url":"https://api.github.com/users/codeanticode/followers","following_url":"https://api.github.com/users/codeanticode/following{/other_user}","gists_url":"https://api.github.com/users/codeanticode/gists{/gist_id}","starred_url":"https://api.github.com/users/codeanticode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeanticode/subscriptions","organizations_url":"https://api.github.com/users/codeanticode/orgs","repos_url":"https://api.github.com/users/codeanticode/repos","events_url":"https://api.github.com/users/codeanticode/events{/privacy}","received_events_url":"https://api.github.com/users/codeanticode/received_events","type":"User","site_admin":false},"milestone":null,"comments":21,"created_at":"2016-03-05T18:36:43Z","updated_at":"2016-04-08T12:08:13Z","closed_at":null,"body":"I have posted about the issue in the forum but did not receive any response.\r\nHere are some previews of the issue received from different people:\r\n\r\nhttp://imgur.com/a/3PQP8\r\nhttp://imgur.com/a/eL6eM\r\nhttp://imgur.com/3lrVQ1l\r\nhttps://imgur.com/a/8iVjy\r\nhttp://imgur.com/5NN6rNm\r\n\r\nThe way I implement text rendering is the following:\r\n\r\n```\r\nfontLarge = createFont(\"Caviar_Dreams_Bold.ttf\",(int)8*displayWidth/100, true);\r\ntextFont(fontLarge);\r\n```\r\nwhere 8*displayWidth/100 is the maximum font size in the application.\r\nI then use textSize() to resize that font depending on the size it should have and use both the three arguments and the 5 arguments text() method.\r\n\r\nThe issue appears on some devices, on some not. The general trend I observed is that the issue appears on high pixel density devices but not on lower ones. It is only a general observation, since the font problem does not appear on, for instance, the s6 edge, which has the same density and resolution as the N6P, which does have the issue. The bug seems to be independent of the android version and locale.\r\n\r\nI have tried switching from P3D to OPENGL, to no avail. I have tried, isntead of using createFont(), to create fonts in the Processing IDE and then importing them to the assets folder and using loadFont(), to no avail. I have tried to change the font numerous times, to no avail.\r\n\r\nThe only differences I see every time I implement a change is that a different set of letters is not displayed properly. As a matter of fact, when I changed the font and decreased the size considerably when I create the font, only signs (such as \"!\", \",\",\".\") appear.\r\n\r\nIn some devices, the bug appears in a different way: instead of fully showing some letters and not showing others at all, letters overlap:\r\n\r\nhttp://imgur.com/2aZIyE6\r\n\r\nThe longer the application runs, the more corrupted the font is:\r\n\r\nhttp://imgur.com/Y8iBGKL\r\n\r\nThis suggests textSize() might be the culprit, since it is the only method I call besides text() that deals with font rendering.\r\n\r\nAt a given time, if a glyph is bugged, it is bugged in the same way on the entire screen. For instance, if \"p\" is displayed as an overlay of \"&\" and \"r\", then all \"p\"s on the screen will be displayed as an overlay of \"&\" and \"r\".\r\n\r\nIs it an error in my implementation or a bug?"},"comment":{"url":"https://api.github.com/repos/processing/processing-android/issues/comments/207402221","html_url":"https://github.com/processing/processing-android/issues/199#issuecomment-207402221","issue_url":"https://api.github.com/repos/processing/processing-android/issues/199","id":207402221,"user":{"login":"evshellshear","id":18229227,"avatar_url":"https://avatars.githubusercontent.com/u/18229227?v=3","gravatar_id":"","url":"https://api.github.com/users/evshellshear","html_url":"https://github.com/evshellshear","followers_url":"https://api.github.com/users/evshellshear/followers","following_url":"https://api.github.com/users/evshellshear/following{/other_user}","gists_url":"https://api.github.com/users/evshellshear/gists{/gist_id}","starred_url":"https://api.github.com/users/evshellshear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evshellshear/subscriptions","organizations_url":"https://api.github.com/users/evshellshear/orgs","repos_url":"https://api.github.com/users/evshellshear/repos","events_url":"https://api.github.com/users/evshellshear/events{/privacy}","received_events_url":"https://api.github.com/users/evshellshear/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T12:08:13Z","updated_at":"2016-04-08T12:08:13Z","body":"@codeanticode have you had any luck further narrowing down what the cause could be? I've had a bit of a further look but apart from my previous two suggestions, nothing else is popping out at me."}}