Git Product home page Git Product logo

imgui_club's Introduction

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

imgui_club's People

Contributors

ocornut avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.