| 2235 | } |
| 2236 | |
| 2237 | ImFont* 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 | |
| 2247 | int ImFontAtlas::AddCustomRectRegular(int width, int height) |
| 2248 | { |
nothing calls this directly
no test coverage detected