DVUI

kerningSet

Set kerning setting. If true:

  • textSize includes kerning by default
  • renderText include kerning by default

Returns the previous setting.

Only valid between Window.beginand Window.end.

Parameters

#
kern:bool
bool

Source

Implementation

#
pub fn kerningSet(kern: bool) bool {
    const cw = currentWindow();
    const old = cw.kerning;
    cw.kerning = kern;
    return old;
}