{"action":"created","issue":{"url":"https://api.github.com/repos/craftworkgames/MonoGame.Extended/issues/309","repository_url":"https://api.github.com/repos/craftworkgames/MonoGame.Extended","labels_url":"https://api.github.com/repos/craftworkgames/MonoGame.Extended/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/craftworkgames/MonoGame.Extended/issues/309/comments","events_url":"https://api.github.com/repos/craftworkgames/MonoGame.Extended/issues/309/events","html_url":"https://github.com/craftworkgames/MonoGame.Extended/issues/309","id":190238459,"number":309,"title":"[BitmapFont] MeasureString produces the wrong height","user":{"login":"craftworkgames","id":3201643,"avatar_url":"https://avatars.githubusercontent.com/u/3201643?v=3","gravatar_id":"","url":"https://api.github.com/users/craftworkgames","html_url":"https://github.com/craftworkgames","followers_url":"https://api.github.com/users/craftworkgames/followers","following_url":"https://api.github.com/users/craftworkgames/following{/other_user}","gists_url":"https://api.github.com/users/craftworkgames/gists{/gist_id}","starred_url":"https://api.github.com/users/craftworkgames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craftworkgames/subscriptions","organizations_url":"https://api.github.com/users/craftworkgames/orgs","repos_url":"https://api.github.com/users/craftworkgames/repos","events_url":"https://api.github.com/users/craftworkgames/events{/privacy}","received_events_url":"https://api.github.com/users/craftworkgames/received_events","type":"User","site_admin":false},"labels":[{"id":232863658,"url":"https://api.github.com/repos/craftworkgames/MonoGame.Extended/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-18T05:21:01Z","updated_at":"2016-11-24T11:32:15Z","closed_at":null,"body":"I noticed today while working on GUI stuff that the `MeasureString` method of `BitmapFont` class is not working as I expected.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3201643/20419504/b0140d5a-ada2-11e6-96ea-0e871c880d38.png)\r\n\r\nI'll probably fix this tonight, but I wanted to raise the issue first.\r\n\r\nI'm pretty sure this worked in the past. We should probably have better regression tests for this kind of thing. I'll write a unit test tonight.\r\n\r\nIt would also be interesting to think about having some kind of screenshot tests for graphics code."},"comment":{"url":"https://api.github.com/repos/craftworkgames/MonoGame.Extended/issues/comments/262755415","html_url":"https://github.com/craftworkgames/MonoGame.Extended/issues/309#issuecomment-262755415","issue_url":"https://api.github.com/repos/craftworkgames/MonoGame.Extended/issues/309","id":262755415,"user":{"login":"lozzajp","id":16327815,"avatar_url":"https://avatars.githubusercontent.com/u/16327815?v=3","gravatar_id":"","url":"https://api.github.com/users/lozzajp","html_url":"https://github.com/lozzajp","followers_url":"https://api.github.com/users/lozzajp/followers","following_url":"https://api.github.com/users/lozzajp/following{/other_user}","gists_url":"https://api.github.com/users/lozzajp/gists{/gist_id}","starred_url":"https://api.github.com/users/lozzajp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lozzajp/subscriptions","organizations_url":"https://api.github.com/users/lozzajp/orgs","repos_url":"https://api.github.com/users/lozzajp/repos","events_url":"https://api.github.com/users/lozzajp/events{/privacy}","received_events_url":"https://api.github.com/users/lozzajp/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T11:32:15Z","updated_at":"2016-11-24T11:32:15Z","body":"I assume it is [here](https://github.com/craftworkgames/MonoGame.Extended/blob/develop/Source/MonoGame.Extended/BitmapFonts/BitmapFont.cs#L75) where we measure `BitmapFontRegion.Height` instead of the currently largest character in the string.\r\n\r\nI am not sure how word wrapping is happening there, you mean there are no `\\r\\n` characters?"}}
{"actor":{"display_login":"lozzajp"}}