{"action":"created","issue":{"url":"https://api.github.com/repos/memononen/nanovg/issues/260","labels_url":"https://api.github.com/repos/memononen/nanovg/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/memononen/nanovg/issues/260/comments","events_url":"https://api.github.com/repos/memononen/nanovg/issues/260/events","html_url":"https://github.com/memononen/nanovg/issues/260","id":128095590,"number":260,"title":"Can't get font-rendering to work at all","user":{"login":"reFX-Mike","id":2496353,"avatar_url":"https://avatars.githubusercontent.com/u/2496353?v=3","gravatar_id":"","url":"https://api.github.com/users/reFX-Mike","html_url":"https://github.com/reFX-Mike","followers_url":"https://api.github.com/users/reFX-Mike/followers","following_url":"https://api.github.com/users/reFX-Mike/following{/other_user}","gists_url":"https://api.github.com/users/reFX-Mike/gists{/gist_id}","starred_url":"https://api.github.com/users/reFX-Mike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reFX-Mike/subscriptions","organizations_url":"https://api.github.com/users/reFX-Mike/orgs","repos_url":"https://api.github.com/users/reFX-Mike/repos","events_url":"https://api.github.com/users/reFX-Mike/events{/privacy}","received_events_url":"https://api.github.com/users/reFX-Mike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-01-22T06:45:07Z","updated_at":"2016-01-23T12:47:09Z","closed_at":null,"body":"For technical reasons I can't use glfw, so I had to roll my own window and context creation. After some fidgeting, I got NanoVG to work, so I can draw lines etc. now.\r\n\r\nBut no text will ever render.\r\n\r\nI've reduced my render function to\r\n\r\n~~~ c\r\nnvgBeginFrame(vg, width, height, 1.f);\r\nrenderGraph(vg, 10, 10, &fps);\r\nnvgEndFrame(vg); \r\n~~~\r\n\r\nI've loaded a font etc. and in renderGraph the cursor position changes (nvgText returns a higher X coordinate than I feed in), but still I can't see any text.\r\n\r\nI've made sure the font is loaded correctly etc. It seems to be some sort of culling is going on, but no amount of glEnable/glDisable calls has been able to fix it.\r\n\r\nThe weirdest thing is that I can't run a debug-version. It crashes during the first memset() in fonsCreateInternal(). No crashes in release...\r\n\r\nPlease help if you can."},"comment":{"url":"https://api.github.com/repos/memononen/nanovg/issues/comments/174184146","html_url":"https://github.com/memononen/nanovg/issues/260#issuecomment-174184146","issue_url":"https://api.github.com/repos/memononen/nanovg/issues/260","id":174184146,"user":{"login":"reFX-Mike","id":2496353,"avatar_url":"https://avatars.githubusercontent.com/u/2496353?v=3","gravatar_id":"","url":"https://api.github.com/users/reFX-Mike","html_url":"https://github.com/reFX-Mike","followers_url":"https://api.github.com/users/reFX-Mike/followers","following_url":"https://api.github.com/users/reFX-Mike/following{/other_user}","gists_url":"https://api.github.com/users/reFX-Mike/gists{/gist_id}","starred_url":"https://api.github.com/users/reFX-Mike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reFX-Mike/subscriptions","organizations_url":"https://api.github.com/users/reFX-Mike/orgs","repos_url":"https://api.github.com/users/reFX-Mike/repos","events_url":"https://api.github.com/users/reFX-Mike/events{/privacy}","received_events_url":"https://api.github.com/users/reFX-Mike/received_events","type":"User","site_admin":false},"created_at":"2016-01-23T12:47:09Z","updated_at":"2016-01-23T12:47:09Z","body":"Thanks! That fixed it. I've made it 64000 instead of 16000 and it works now. What a relief. I though I was going crazy."}}