# graphicsGlyphCluster

A graphics glyph cluster record carrying value, sourceStart, sourceEnd, glyphId, advance, and related state.

Last updated: 2026-09-09

Package: graphics.text | Status: source-declared

Tags: cpu, graphics, graphics.text, method, source-example, text, thing, yeho

Shape, measure, and represent text and glyph resources.

```yh
external thing graphicsGlyphCluster
```

- text value: Stores value as text.
- int sourceStart: Stores source start as int.
- int sourceEnd: Stores source end as int.
- text glyphId: Stores glyph id as text.
- int advance: Stores advance as int.
- int offsetX: Stores offset x as int.
- int offsetY: Stores offset y as int.
- text fontFamily: Stores font family as text.
- text script: Stores script as text.
- int bidiLevel: Stores bidi level as int.
- bool breakOpportunity: Stores break opportunity as bool.
- bool missing: Stores missing as bool.
- graphicsGlyphCluster(text value, int sourceStart, int sourceEnd, text glyphId, int advance, text fontFamily, text script, int bidiLevel, bool breakOpportunity, bool missing): Graphics glyph cluster.
- ValidationIssue(text source) returns text: Validation issue.
- Describe() returns text: Describe.

## Use graphicsGlyphCluster

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

Verification: type checked

```yh
using graphics.text

// Shape, measure, and represent text and glyph resources.
graphicsGlyphCluster sample = graphicsGlyphCluster("value", 1, 1, "glyph Id", 1, "font Family", "script", 1, true, true)
Console.Log(Text.From(sample.value))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsglyphcluster"
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"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/graphics.text--graphicsGlyphCluster/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsGlyphCluster.ValidationIssue

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Validation issue.
graphicsGlyphCluster instance = graphicsGlyphCluster("value", 1, 1, "glyph Id", 1, "font Family", "script", 1, true, true)
text argument_source = "argument source"
text result = instance.ValidationIssue(argument_source)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsglyphcluster"
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"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/graphics.text--graphicsGlyphCluster/method-ValidationIssue-13 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsGlyphCluster.Describe

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Describe.
graphicsGlyphCluster instance = graphicsGlyphCluster("value", 1, 1, "glyph Id", 1, "font Family", "script", 1, true, true)
text result = instance.Describe()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsglyphcluster"
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"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/graphics.text--graphicsGlyphCluster/method-Describe-14 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

Source: yeho/packages/graphics/text/shaping.yh

AI training permission: https://demonhunterlabs.com/ai-use
