mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-04 20:18:47 +02:00
Mde it optional to new() io.Font - however it stills needs to be loaded.
This commit is contained in:
@ -465,7 +465,6 @@ void InitImGui()
|
||||
}
|
||||
|
||||
// Load font
|
||||
io.Font = new ImFont();
|
||||
io.Font->LoadDefault();
|
||||
//io.Font->LoadFromFileTTF("myfont.ttf", font_size_px, ImFont::GetGlyphRangesDefault());
|
||||
//io.Font->DisplayOffset.y += 0.0f;
|
||||
|
@ -238,7 +238,6 @@ void InitImGui()
|
||||
}
|
||||
|
||||
// Load font
|
||||
io.Font = new ImFont();
|
||||
io.Font->LoadDefault();
|
||||
//io.Font->LoadFromFileTTF("myfont.ttf", font_size_px, ImFont::GetGlyphRangesDefault());
|
||||
//io.Font->DisplayOffset.y += 0.0f;
|
||||
|
@ -278,7 +278,6 @@ void InitImGui()
|
||||
io.GetClipboardTextFn = ImImpl_GetClipboardTextFn;
|
||||
|
||||
// Load font
|
||||
io.Font = new ImFont();
|
||||
io.Font->LoadDefault();
|
||||
//io.Font->LoadFromFileTTF("myfont.ttf", font_size_px, ImFont::GetGlyphRangesDefault());
|
||||
//io.Font->DisplayOffset.y += 0.0f;
|
||||
|
@ -187,7 +187,6 @@ void InitImGui()
|
||||
io.GetClipboardTextFn = ImImpl_GetClipboardTextFn;
|
||||
|
||||
// Load font
|
||||
io.Font = new ImFont();
|
||||
io.Font->LoadDefault();
|
||||
//io.Font->LoadFromFileTTF("myfont.ttf", font_size_px, ImFont::GetGlyphRangesDefault());
|
||||
//io.Font->DisplayOffset.y += 0.0f;
|
||||
|
Reference in New Issue
Block a user