{"action":"created","issue":{"url":"https://api.github.com/repos/rougier/freetype-py/issues/31","labels_url":"https://api.github.com/repos/rougier/freetype-py/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/rougier/freetype-py/issues/31/comments","events_url":"https://api.github.com/repos/rougier/freetype-py/issues/31/events","html_url":"https://github.com/rougier/freetype-py/issues/31","id":88083763,"number":31,"title":"how do I get the glyph's decender??","user":{"login":"Tcll","id":773959,"avatar_url":"https://avatars.githubusercontent.com/u/773959?v=3","gravatar_id":"","url":"https://api.github.com/users/Tcll","html_url":"https://github.com/Tcll","followers_url":"https://api.github.com/users/Tcll/followers","following_url":"https://api.github.com/users/Tcll/following{/other_user}","gists_url":"https://api.github.com/users/Tcll/gists{/gist_id}","starred_url":"https://api.github.com/users/Tcll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tcll/subscriptions","organizations_url":"https://api.github.com/users/Tcll/orgs","repos_url":"https://api.github.com/users/Tcll/repos","events_url":"https://api.github.com/users/Tcll/events{/privacy}","received_events_url":"https://api.github.com/users/Tcll/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-06-13T23:38:31Z","updated_at":"2015-06-14T15:20:03Z","closed_at":"2015-06-14T03:39:42Z","body":"basically, here's my issue:\r\nhttp://lh3.ggpht.com/-GmqDWP3qLbI/VXy9r5LRGKI/AAAAAAAAJPc/qeai--pHARg/s802/Screenshot%252520-%25252006132015%252520-%25252007%25253A22%25253A11%252520PM.png\r\n\r\nwith PIL and PyGame I can get the glyph height and max height...\r\nbut with this, I can't seem to get the proper max height and a very wonky glyph height :/\r\n\r\nI need the bitmap w/h for the GL texture, and the max w/h for the transformations.\r\n\r\nEDIT:\r\nthe base line for drawing the glyphs is positioned at the upper left, while the characters are drawn to the bottom right."},"comment":{"url":"https://api.github.com/repos/rougier/freetype-py/issues/comments/111840873","html_url":"https://github.com/rougier/freetype-py/issues/31#issuecomment-111840873","issue_url":"https://api.github.com/repos/rougier/freetype-py/issues/31","id":111840873,"user":{"login":"Tcll","id":773959,"avatar_url":"https://avatars.githubusercontent.com/u/773959?v=3","gravatar_id":"","url":"https://api.github.com/users/Tcll","html_url":"https://github.com/Tcll","followers_url":"https://api.github.com/users/Tcll/followers","following_url":"https://api.github.com/users/Tcll/following{/other_user}","gists_url":"https://api.github.com/users/Tcll/gists{/gist_id}","starred_url":"https://api.github.com/users/Tcll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tcll/subscriptions","organizations_url":"https://api.github.com/users/Tcll/orgs","repos_url":"https://api.github.com/users/Tcll/repos","events_url":"https://api.github.com/users/Tcll/events{/privacy}","received_events_url":"https://api.github.com/users/Tcll/received_events","type":"User","site_admin":false},"created_at":"2015-06-14T15:20:03Z","updated_at":"2015-06-14T15:20:03Z","body":"ok, now that I'm waking up, I think I'm seeing it:\r\n\r\n    |  |           |       |\r\n    1  2           3       4\r\n\r\n1: Origin\r\n2: bearingX or OffsetX\r\n3: Bitmap width\r\n4: Glyph Advance (from 2)\r\n\r\nmost characters appear like this:\r\nC 1 9 11\r\nbut other characters:\r\nε -1 6 4\r\n\r\nso I guess build an image based on the `max( bitmap.width, F.glyph.advance.x/64 )`\r\nand I'm guessing add the offset if >0 (since my interface can't do -1)\r\n\r\nI'll post back my results\r\n\r\nbtw, texture_font didn't really help... the resource from earlier helped me understand the advance, but I didn't understand it was advance OR width (whichever was greater)\r\nand the offset being below 0 threw me off as well."}}