ScratchingTheSurface
ScratchingTheSurface

Reputation: 449

Font/glyph merging and remapping in Dear ImGui

For my ImGui application I want to do the following:

  1. Load a primary font

  2. Load a secondary font

  3. Add a list of selected glyphs from the secondary font to the primary font:

    1. For each glyph I want to choose the Unicode location in the primary font (remapping...) where the glyph will be placed, so I can use it in the primary font by using that Unicode in C++ strings.

    2. Each glyph from the secondary font needs a change of location in x- and y-direction.

I did read the ImGui font-readme, plus examples, did some simple font merging, but for the above task I hardly have a clue where to start. There is a font->AddGlyph() function, but I'm not sure how to use that for the above tasks. I hope the above is possible, any hint is appreciated.

Upvotes: 1

Views: 201

Answers (0)

Related Questions