graphics.text · function ·

CreateGraphicsTextMeasureRequest

Create graphics text measure request from the supplied values.

cpufunctiongraphicsgraphics.textsource-exampletextyeho

Shape, measure, and represent text and glyph resources.

external CreateGraphicsTextMeasureRequest(graphicsTextRun run, text fontFamilyToken, text fontSizeToken, text weight, text lineHeightToken, int maxWidth) returns graphicsTextMeasureRequest

Status: source-declared

Parameters

graphicsTextRun run
Supply run as graphicsTextRun.
text fontFamilyToken
Supply font family token as text.
text fontSizeToken
Supply font size token as text.
text weight
Supply weight as text.
text lineHeightToken
Supply line height token as text.
int maxWidth
Supply max width as int.

Use CreateGraphicsTextMeasureRequest

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.
graphicsTextRun run = graphicsTextRun("value", "style Ref", "overflow", "alignment")
text fontFamilyToken = "font Family Token"
text fontSizeToken = "font Size Token"
text weight = "weight"
text lineHeightToken = "line Height Token"
int maxWidth = 1
graphicsTextMeasureRequest result = CreateGraphicsTextMeasureRequest(run, fontFamilyToken, fontSizeToken, weight, lineHeightToken, maxWidth)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__creategraphicstextmeasurerequest"
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:104