|
@@ -3230,7 +3230,6 @@ void ImFontAtlasBuildNotifySetFont(ImFontAtlas* atlas, ImFont* old_font, ImFont*
|
|
|
void ImFontAtlas::RemoveFont(ImFont* font)
|
|
void ImFontAtlas::RemoveFont(ImFont* font)
|
|
|
{
|
|
{
|
|
|
IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas!");
|
|
IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas!");
|
|
|
- font->ClearOutputData();
|
|
|
|
|
|
|
|
|
|
ImFontAtlasFontDestroyOutput(this, font);
|
|
ImFontAtlasFontDestroyOutput(this, font);
|
|
|
for (ImFontConfig* src : font->Sources)
|
|
for (ImFontConfig* src : font->Sources)
|
|
@@ -5106,7 +5105,7 @@ void ImFont::ClearOutputData()
|
|
|
{
|
|
{
|
|
|
if (ImFontAtlas* atlas = OwnerAtlas)
|
|
if (ImFontAtlas* atlas = OwnerAtlas)
|
|
|
ImFontAtlasFontDiscardBakes(atlas, this, 0);
|
|
ImFontAtlasFontDiscardBakes(atlas, this, 0);
|
|
|
- FallbackChar = EllipsisChar = 0;
|
|
|
|
|
|
|
+ //FallbackChar = EllipsisChar = 0;
|
|
|
memset(Used8kPagesMap, 0, sizeof(Used8kPagesMap));
|
|
memset(Used8kPagesMap, 0, sizeof(Used8kPagesMap));
|
|
|
LastBaked = NULL;
|
|
LastBaked = NULL;
|
|
|
}
|
|
}
|