Destroy builder and all cached glyphs. Do not destroy actual fonts.
| 4217 | |
| 4218 | // Destroy builder and all cached glyphs. Do not destroy actual fonts. |
| 4219 | void ImFontAtlasBuildDestroy(ImFontAtlas* atlas) |
| 4220 | { |
| 4221 | for (ImFont* font : atlas->Fonts) |
| 4222 | ImFontAtlasFontDestroyOutput(atlas, font); |
| 4223 | if (atlas->Builder && atlas->FontLoader && atlas->FontLoader->LoaderShutdown) |
| 4224 | { |
| 4225 | atlas->FontLoader->LoaderShutdown(atlas); |
| 4226 | IM_ASSERT(atlas->FontLoaderData == NULL); |
| 4227 | } |
| 4228 | IM_DELETE(atlas->Builder); |
| 4229 | atlas->Builder = NULL; |
| 4230 | } |
| 4231 | |
| 4232 | void ImFontAtlasPackInit(ImFontAtlas * atlas) |
| 4233 | { |
no test coverage detected