graphics.text · function ·
MeasureGraphicsText
Measure graphics text.
Shape, measure, and represent text and glyph resources.
external MeasureGraphicsText(graphicsTextMeasureRequest request) returns graphicsTextMeasureResultStatus: source-declared
Parameters
graphicsTextMeasureRequest request- Supply request as graphicsTextMeasureRequest.
Use MeasureGraphicsText
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.
graphicsTextMeasureRequest request = graphicsTextMeasureRequest(graphicsTextRun("value", "style Ref", "overflow", "alignment"), "font Family Token", "font Size Token", "weight", "line Height Token", 1)
graphicsTextMeasureResult result = MeasureGraphicsText(request)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__measuregraphicstext"
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:109