vurtun / nuklear

A single-header ANSI C gui library
13.68k stars 1.11k forks source link

nk_font_atlas_add_from_memory and nk_font_atlas_add_from_file wont work #873

Open ghost opened 5 years ago

ghost commented 5 years ago

Im using example from https://github.com/vurtun/nuklear/blob/c3f6c73d5ccd559426b22f63907119e3b95faf80/demo/d3d11/main.c#L195

nk_font_atlas_add_from_memory and nk_font_atlas_add_from_file are always returning zeroes without any errors. Debug output https://i.imgur.com/i42it80.png . I've tried using different font, but result is the same as on screenshot. Any help?

dumblob commented 5 years ago

The debug output doesn't tell me much. But anyway I think you'll find your answer by looking at the d3d11 backend (and demo) source code. If you won't be successful, post your full source code so that others can potentially try to compile and run it to help you.