MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / AddFontFromMemoryCompressedBase85TTF

Method AddFontFromMemoryCompressedBase85TTF

KBotExt/imgui/imgui_draw.cpp:2237–2245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2235}
2236
2237ImFont* ImFontAtlas::AddFontFromMemoryCompressedBase85TTF(const char* compressed_ttf_data_base85, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges)
2238{
2239 int compressed_ttf_size = (((int)strlen(compressed_ttf_data_base85) + 4) / 5) * 4;
2240 void* compressed_ttf = IM_ALLOC((size_t)compressed_ttf_size);
2241 Decode85((const unsigned char*)compressed_ttf_data_base85, (unsigned char*)compressed_ttf);
2242 ImFont* font = AddFontFromMemoryCompressedTTF(compressed_ttf, compressed_ttf_size, size_pixels, font_cfg, glyph_ranges);
2243 IM_FREE(compressed_ttf);
2244 return font;
2245}
2246
2247int ImFontAtlas::AddCustomRectRegular(int width, int height)
2248{

Callers

nothing calls this directly

Calls 1

Decode85Function · 0.85

Tested by

no test coverage detected