API reference
Preparing search index…

ImGui.CalcTextSize

  • Calculate the size of text.

    Parameters

    text
    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

    Measured text extent: copied pixel dimensions {x: width, y: height}.

    Implied text_end = null, hide_text_after_double_hash = false, wrap_width = -1.0

    Source & inheritance

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