Skip to content

lineCode/imgui_club

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

imgui_freetype

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

  1. Get latest FreeType binaries or build yourself.
  2. Add imgui_freetype.h/cpp alongside your imgui sources.
  3. Include imgui_freetype.h after imgui.h.
  4. 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+.

freetype rasterizer


imgui_memory_editor

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);

memory editor

About

Nice things to use along with dear imgui

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 52.7%
  • C++ 47.3%