API reference
Preparing search index…

ImGui.ImFontGlyphRangesBuilder_AddRanges

  • Add character ranges to the glyph-range builder.

    Parameters

    self

    ImFontGlyphRangesBuilder handle on which this method operates.

    ranges
    Uint16Array

    Uint16Array of inclusive [first, last] pairs followed by 0. getGlyphRanges* helpers omit that terminator: append it explicitly with new Uint16Array([...getGlyphRangesDefault(atlas), 0]). The builder reads the ranges during this call; null is not accepted.

    Returns

    void

    Add all ASCII/Latin+Ext code points from the default atlas ranges:

    const ranges = new Uint16Array([...getGlyphRangesDefault(atlas), 0]);
    ImFontGlyphRangesBuilder_AddRanges(builder, ranges);
    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0