Skip to content

Commit

Permalink
ImFont: simpler constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Feb 14, 2025
1 parent ec4cd2c commit 474305c
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions imgui_draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3685,21 +3685,8 @@ void ImFontGlyphRangesBuilder::BuildRanges(ImVector<ImWchar>* out_ranges)

ImFont::ImFont()
{
FontSize = 0.0f;
FallbackAdvanceX = 0.0f;
FallbackChar = 0;
EllipsisChar = 0;
EllipsisWidth = EllipsisCharStep = 0.0f;
EllipsisCharCount = 0;
FallbackGlyph = NULL;
ContainerAtlas = NULL;
ConfigData = NULL;
ConfigDataCount = 0;
DirtyLookupTables = false;
memset(this, 0, sizeof(*this));
Scale = 1.0f;
Ascent = Descent = 0.0f;
MetricsTotalSurface = 0;
memset(Used8kPagesMap, 0, sizeof(Used8kPagesMap));
}

ImFont::~ImFont()
Expand Down

0 comments on commit 474305c

Please sign in to comment.