rigImGui 0.1.1
RigKit pack API - rigImGui
Loading...
Searching...
No Matches
rigkit::TtfKern Class Reference

Legacy TTF kern format-0 pairs, keyed by Unicode. More...

#include <rigImGui/src/TtfKern.h>

Public Member Functions

float pairPx (unsigned left, unsigned right, float sizePx) const
 Extra advance in pixels at sizePx. 0 when the pair is absent.

Detailed Description

Legacy TTF kern format-0 pairs, keyed by Unicode.

ImGui atlas text has advance only. This table supplies pair extras at draw time. GPOS / class kerning is not read - bind Mui::setChromeKernFn (VarFont GetGposPairExtraPx) for that.


The documentation for this class was generated from the following file: