graphics.text · function ·

MeasureGraphicsShapedText

Measure graphics shaped text.

cpufunctiongraphicsgraphics.textsource-exampletextyeho

Shape, measure, and represent text and glyph resources.

external MeasureGraphicsShapedText(graphicsShapedText shaped, int maximumWidth) returns graphicsTextMeasureResult

Status: source-declared

Parameters

graphicsShapedText shaped
Supply shaped as graphicsShapedText.
int maximumWidth
Supply maximum width as int.

Use MeasureGraphicsShapedText

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.
graphicsShapedText shaped = graphicsShapedText("value", graphicsFontReference("cpu", "fallback Families", 1, 1, 1, "style", "features", "example"), "locale", "direction", 1, 1, 1, "example")
int maximumWidth = 1
graphicsTextMeasureResult result = MeasureGraphicsShapedText(shaped, maximumWidth)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__measuregraphicsshapedtext"
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:114