https://github.com/ocornut/imgui_club/tree/master/imgui_freetype
This is an attempt to replace stb_truetype (the default imgui's font rasterizer) with FreeType. Probably lots of bugs, not production ready. By Vuhdo (Aleksei Skriabin).
Usage
- Get latest FreeType binaries or build yourself.
- Add imgui_freetype.h/cpp alongside your imgui sources.
- Include imgui_freetype.h after imgui.h.
- Call ImGuiFreeType::BuildFontAtlas() prior to calling GetTexDataXXX (and normal Build() won't be called):
// See ImGuiFreeType::RasterizationFlags
unsigned int flags = ImGuiFreeType::DisableHinting;
ImGuiFreeType::BuildFontAtlas(io.Fonts, flags);
io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height);
Known issues
- Excessive font texture resolution.
- FreeType's memory allocator is not overriden.
Obligatory comparison screenshots
Using Windows built-in segoeui.ttf font. Open in new browser tabs, view at 1080p+.
https://github.com/ocornut/imgui_club/tree/master/imgui_memory_editor
Mini hexadecimal editor! Right-click for option menu. Features: Keyboard controls. Read-only mode. Optional Ascii display. Optional HexII display. Goto address. Highlight range/function. Read/Write handlers.
Usage
static MemoryEditor mem_edit_1;
mem_edit_1.DrawWindow("Memory Editor", data, data_size);