graphics.text · function ·

CreateGraphicsGlyphCluster

Create graphics glyph cluster from the supplied values.

cpufunctiongraphicsgraphics.textsource-exampletextyeho

Shape, measure, and represent text and glyph resources.

external CreateGraphicsGlyphCluster(text value, int sourceStart, int sourceEnd, text glyphId, int advance, text fontFamily, text script, int bidiLevel, bool breakOpportunity, bool missing) returns graphicsGlyphCluster

Status: source-declared

Parameters

text value
Supply value as text.
int sourceStart
Supply source start as int.
int sourceEnd
Supply source end as int.
text glyphId
Supply glyph id as text.
int advance
Supply advance as int.
text fontFamily
Supply font family as text.
text script
Supply script as text.
int bidiLevel
Supply bidi level as int.
bool breakOpportunity
Supply break opportunity as bool.
bool missing
Supply missing as bool.

Use CreateGraphicsGlyphCluster

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"
int sourceStart = 1
int sourceEnd = 1
text glyphId = "glyph Id"
int advance = 1
text fontFamily = "font Family"
text script = "script"
int bidiLevel = 1
bool breakOpportunity = true
bool missing = true
graphicsGlyphCluster result = CreateGraphicsGlyphCluster(value, sourceStart, sourceEnd, glyphId, advance, fontFamily, script, bidiLevel, breakOpportunity, missing)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__creategraphicsglyphcluster"
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/shaping.yh:309