# graphicsGlyphClusterV2

A graphics glyph cluster v2 record carrying index, sourceStart, sourceEnd, glyphStart, glyphEnd, 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 graphicsGlyphClusterV2
```

- int index: Stores index as int.
- int sourceStart: Stores source start as int.
- int sourceEnd: Stores source end as int.
- int glyphStart: Stores glyph start as int.
- int glyphEnd: Stores glyph end as int.
- text script: Stores script as text.
- int bidiLevel: Stores bidi level as int.
- bool breakOpportunity: Stores break opportunity as bool.
- bool whitespace: Stores whitespace as bool.
- bool missing: Stores missing as bool.
- graphicsGlyphClusterV2(int index, int sourceStart, int sourceEnd, int glyphStart, int glyphEnd, text script, int bidiLevel, bool breakOpportunity, bool whitespace, bool missing): Graphics glyph cluster v2.
- ValidationIssue(text source, int sourceLength) returns text: Validation issue.
- Snapshot() returns text: Snapshot.

## Use graphicsGlyphClusterV2

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.
graphicsGlyphClusterV2 sample = graphicsGlyphClusterV2(1, 1, 1, 1, 1, "script", 1, true, true, true)
Console.Log(Text.From(sample.index))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsglyphclusterv2"
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--graphicsGlyphClusterV2/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsGlyphClusterV2.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.
graphicsGlyphClusterV2 instance = graphicsGlyphClusterV2(1, 1, 1, 1, 1, "script", 1, true, true, true)
text argument_source = "argument source"
int argument_sourceLength = 1
text result = instance.ValidationIssue(argument_source, argument_sourceLength)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsglyphclusterv2"
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--graphicsGlyphClusterV2/method-ValidationIssue-11 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsGlyphClusterV2.Snapshot

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Snapshot.
graphicsGlyphClusterV2 instance = graphicsGlyphClusterV2(1, 1, 1, 1, 1, "script", 1, true, true, true)
text result = instance.Snapshot()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsglyphclusterv2"
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--graphicsGlyphClusterV2/method-Snapshot-12 --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_v2.yh

AI training permission: https://demonhunterlabs.com/ai-use
