graphics.text · function ·

CreateGraphicsTextRun

Create graphics text run from the supplied values.

cpufunctiongraphicsgraphics.textsource-exampletextyeho

Shape, measure, and represent text and glyph resources.

external CreateGraphicsTextRun(text value, text styleRef, text overflow, text alignment) returns graphicsTextRun

Status: source-declared

Parameters

text value
Supply value as text.
text styleRef
Supply style ref as text.
text overflow
Supply overflow as text.
text alignment
Supply alignment as text.

Use CreateGraphicsTextRun

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

using graphics.text

// Shape, measure, and represent text and glyph resources.
text value = "value"
text styleRef = "style Ref"
text overflow = "overflow"
text alignment = "alignment"
graphicsTextRun result = CreateGraphicsTextRun(value, styleRef, overflow, alignment)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__creategraphicstextrun"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"
Notes and source

Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

yeho/packages/graphics/text/text.yh:99