{"action":"created","issue":{"url":"https://api.github.com/repos/libgdx/libgdx/issues/3234","labels_url":"https://api.github.com/repos/libgdx/libgdx/issues/3234/labels{/name}","comments_url":"https://api.github.com/repos/libgdx/libgdx/issues/3234/comments","events_url":"https://api.github.com/repos/libgdx/libgdx/issues/3234/events","html_url":"https://github.com/libgdx/libgdx/pull/3234","id":91187915,"number":3234,"title":"This allows user that can change wrap logic in custom glyph layout.","user":{"login":"scientistnm","id":933456,"avatar_url":"https://avatars.githubusercontent.com/u/933456?v=3","gravatar_id":"","url":"https://api.github.com/users/scientistnm","html_url":"https://github.com/scientistnm","followers_url":"https://api.github.com/users/scientistnm/followers","following_url":"https://api.github.com/users/scientistnm/following{/other_user}","gists_url":"https://api.github.com/users/scientistnm/gists{/gist_id}","starred_url":"https://api.github.com/users/scientistnm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scientistnm/subscriptions","organizations_url":"https://api.github.com/users/scientistnm/orgs","repos_url":"https://api.github.com/users/scientistnm/repos","events_url":"https://api.github.com/users/scientistnm/events{/privacy}","received_events_url":"https://api.github.com/users/scientistnm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-06-26T08:20:50Z","updated_at":"2015-06-29T14:11:00Z","closed_at":"2015-06-27T17:45:00Z","pull_request":{"url":"https://api.github.com/repos/libgdx/libgdx/pulls/3234","html_url":"https://github.com/libgdx/libgdx/pull/3234","diff_url":"https://github.com/libgdx/libgdx/pull/3234.diff","patch_url":"https://github.com/libgdx/libgdx/pull/3234.patch"},"body":"This allows user that can change wrap logic in custom glyph layout.\r\n(e.g. remove multiplewhite spaces omitting when glyph run is wrapped if needed)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/libgdx/libgdx/issues/comments/116685828","html_url":"https://github.com/libgdx/libgdx/pull/3234#issuecomment-116685828","issue_url":"https://api.github.com/repos/libgdx/libgdx/issues/3234","id":116685828,"user":{"login":"scientistnm","id":933456,"avatar_url":"https://avatars.githubusercontent.com/u/933456?v=3","gravatar_id":"","url":"https://api.github.com/users/scientistnm","html_url":"https://github.com/scientistnm","followers_url":"https://api.github.com/users/scientistnm/followers","following_url":"https://api.github.com/users/scientistnm/following{/other_user}","gists_url":"https://api.github.com/users/scientistnm/gists{/gist_id}","starred_url":"https://api.github.com/users/scientistnm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scientistnm/subscriptions","organizations_url":"https://api.github.com/users/scientistnm/orgs","repos_url":"https://api.github.com/users/scientistnm/repos","events_url":"https://api.github.com/users/scientistnm/events{/privacy}","received_events_url":"https://api.github.com/users/scientistnm/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T14:11:00Z","updated_at":"2015-06-29T14:11:00Z","body":"Hi,\r\n\r\nIt works better, but also I have a problem determing the current layout width.\r\nI droped TextArea usecase for a moment, and focusing on TextField usecase.\r\n\r\nIn this approach I always have \"singlelined\" text, becase I render to texture, I need to use some stencil masking to simulate TextField scrolling when text lenght exceeds the widget width.\r\n\r\nWhen you have a glyphLayout that has the whitespace on the end of the text, even when I don't use wrapping, it's not calculated in global layout width.\r\n\r\nI use this method:\r\nglyphLayout.setText(BitmapFont font, singlelinedText);\r\n\r\nThis way I'm unable to detect that I should scroll my text, because bounds of the glyphlayout doesn't change when I just type whitespaces constantly after some already rendered text.\r\n\r\n\r\n\r\n"}}