API reference
Preparing search index…

ImGui.ImDrawList_AddTextImFontPtr

  • Append text to the draw list with explicit font and size control.

    Parameters

    self

    ImDrawList handle on which this method operates.

    font
    null | ImFont

    Font used for drawing; null selects the draw list's shared current font, not necessarily the default font.

    font_size
    number

    Text size in pixels; 0 uses the draw list shared current font size, even when an explicit font is supplied.

    pos

    Position in absolute screen coordinates, in pixels.

    col
    number

    Packed ImU32 RGBA color; alpha controls opacity.

    text_begin
    string | Uint8Array

    UTF-8 text to read. JS strings are encoded for this call; a nonempty Uint8Array ending in NUL is passed directly, otherwise its bytes are copied and NUL-terminated.

    Returns

    void

    Implied text_end = null, wrap_width = 0.0, cpu_fine_clip_rect = null

    Source & inheritance

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