memononen/fontstash

No fonts, just dashes

mylocameron opened this issue · 3 comments

I've pulled latest fontstash and glfw ( glfw-3.0.3 ), building the example.c file, and only seeing a blank screen with dashes on it:

image

I'm a complete opengl newbie ( though seasoned C/C++ programmer ), so any help to getting the sample text to render would be appreciated!

Thanks!

Looks like something prevents the textured quads to be drawn. For starters can you try to comment this line out from the example:
glEnable(GL_CULL_FACE);

It skips rendering of triangles and quads which have have vertices wound in clock wise order.

No, that didn't help. Same result. :(

From: Mikko Mononen <notifications@github.commailto:notifications@github.com>
Reply-To: memononen/fontstash <reply@reply.github.commailto:reply@reply.github.com>
Date: Sunday, December 22, 2013 at 8:36 AM
To: memononen/fontstash <fontstash@noreply.github.commailto:fontstash@noreply.github.com>
Cc: Cameron Skinner <cameron@mylollc.commailto:cameron@mylollc.com>
Subject: Re: [fontstash] No fonts, just dashes (#11)

Looks like something prevents the textured quads to be drawn. For starters can you try to comment this line out from the example:
glEnable(GL_CULL_FACE);

It skips rendering of triangles and quads which have have vertices wound in clock wise order.

Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-31090604.

Figured it out. Font resources weren't getting loaded correctly. Thanks for the help!