Append text to the draw list with explicit font and size control.
selfImDrawList handle on which this method operates.
fontFont used for drawing; null selects the draw list's shared current font, not necessarily the default font.
font_sizeText size in pixels; 0 uses the draw list shared current font size, even when an explicit font is supplied.
posPosition in absolute screen coordinates, in pixels.
colPacked ImU32 RGBA color; alpha controls opacity.
text_beginUTF-8 text. With omitted/null text_end, strings are encoded; NUL-terminated nonempty byte views are used directly, other views are copied and NUL-terminated. With an explicit end, pass a Uint8Array: its bytes are read directly and need no NUL terminator.
text_endOptionalExclusive endpoint view, not a length or another string. Explicit begin/end must share one backing buffer and satisfy begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength. An empty end view is valid; neither view needs NUL termination. Omitted/null end uses ordinary NUL-terminated UTF-8 conversion.
wrap_widthOptionalMaximum text width in pixels before wrapping; nonpositive values disable wrapping.
cpu_fine_clip_rectOptionalOptional Float32Array [minX,minY,maxX,maxY] screen rectangle for per-glyph CPU clipping. Pass Float32Array storage, not a JS scalar; native access uses the supplied backing memory.
Append text to the draw list with explicit font and size control.
selfImDrawList handle on which this method operates.
fontFont used for drawing; null selects the draw list's shared current font, not necessarily the default font.
font_sizeText size in pixels; 0 uses the draw list shared current font size, even when an explicit font is supplied.
posPosition in absolute screen coordinates, in pixels.
colPacked ImU32 RGBA color; alpha controls opacity.
text_beginUTF-8 text. With omitted/null text_end, strings are encoded; NUL-terminated nonempty byte views are used directly, other views are copied and NUL-terminated. With an explicit end, pass a Uint8Array: its bytes are read directly and need no NUL terminator.
text_endExclusive endpoint view, not a length or another string. Explicit begin/end must share one backing buffer and satisfy begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength. An empty end view is valid; neither view needs NUL termination. Omitted/null end uses ordinary NUL-terminated UTF-8 conversion.
wrap_widthOptionalMaximum text width in pixels before wrapping; nonpositive values disable wrapping.
cpu_fine_clip_rectOptionalOptional Float32Array [minX,minY,maxX,maxY] screen rectangle for per-glyph CPU clipping. Pass Float32Array storage, not a JS scalar; native access uses the supplied backing memory.
Append text to the draw list with explicit font and size control.
Param: self
ImDrawList handle on which this method operates.
Param: font
Font used for drawing; null selects the draw list's shared current font, not necessarily the default font.
Param: font_size
Text size in pixels; 0 uses the draw list shared current font size, even when an explicit font is supplied.
Param: pos
Position in absolute screen coordinates, in pixels.
Param: col
Packed ImU32 RGBA color; alpha controls opacity.
Param: text_begin
UTF-8 text. With omitted/null text_end, strings are encoded; NUL-terminated nonempty byte views are used directly, other views are copied and NUL-terminated. With an explicit end, pass a Uint8Array: its bytes are read directly and need no NUL terminator.
Param: text_end
Exclusive endpoint view, not a length or another string. Explicit begin/end must share one backing buffer and satisfy begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength. An empty end view is valid; neither view needs NUL termination. Omitted/null end uses ordinary NUL-terminated UTF-8 conversion.
Param: wrap_width
Maximum text width in pixels before wrapping; nonpositive values disable wrapping.
Param: cpu_fine_clip_rect
Optional Float32Array [minX,minY,maxX,maxY] screen rectangle for per-glyph CPU clipping. Pass Float32Array storage, not a JS scalar; native access uses the supplied backing memory.