-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
#ifdef NK_INCLUDE_DEFAULT_FONT
NK_GLOBAL const char nk_proggy_clean_ttf_compressed_data_base85[11980+1];Use....
int compressed_size;
void *compressed_data;
struct nk_font *font;
NK_ASSERT(atlas);
NK_ASSERT(atlas->temporary.alloc);
NK_ASSERT(atlas->temporary.free);
NK_ASSERT(atlas->permanent.alloc);
NK_ASSERT(atlas->permanent.free);
NK_ASSERT(data_base85);
if (!atlas || !data_base85 || !atlas->temporary.alloc || !atlas->temporary.free ||
!atlas->permanent.alloc || !atlas->permanent.free)
return 0;
compressed_size = (((int)nk_strlen(data_base85) + 4) / 5) * 4;
compressed_data = atlas->temporary.alloc(atlas->temporary.userdata,0, (nk_size)compressed_size);
NK_ASSERT(compressed_data);
if (!compressed_data) return 0;
nk_decode_85((unsigned char*)compressed_data, (const unsigned char*)data_base85);Metadata
Metadata
Assignees
Labels
No labels