Keep source/input FontData
| 3586 | |
| 3587 | // Keep source/input FontData |
| 3588 | void ImFontAtlasFontDestroyOutput(ImFontAtlas* atlas, ImFont* font) |
| 3589 | { |
| 3590 | font->ClearOutputData(); |
| 3591 | for (ImFontConfig* src : font->Sources) |
| 3592 | { |
| 3593 | const ImFontLoader* loader = src->FontLoader ? src->FontLoader : atlas->FontLoader; |
| 3594 | if (loader && loader->FontSrcDestroy != NULL) |
| 3595 | loader->FontSrcDestroy(atlas, src); |
| 3596 | } |
| 3597 | } |
| 3598 | |
| 3599 | //----------------------------------------------------------------------------------------------------------------------------- |
| 3600 |
no test coverage detected