# graphicsWindowsCapturedSourceCluster

A graphics windows captured source cluster record carrying index, textPositionUtf16, textLengthUtf16, sourceStartUtf8, sourceEndUtf8, and related state.

Last updated: 2026-09-09

Package: graphics.text.windows | Status: source-declared

Tags: cpu, graphics, graphics.text.windows, method, source-example, text, thing, windows, yeho

Capture Windows text shaping and glyph rasterization for the shared text model.

```yh
external thing graphicsWindowsCapturedSourceCluster
```

- int index: Stores index as int.
- int textPositionUtf16: Stores text position utf16 as int.
- int textLengthUtf16: Stores text length utf16 as int.
- int sourceStartUtf8: Stores source start utf8 as int.
- int sourceEndUtf8: Stores source end utf8 as int.
- int glyphStart: Stores glyph start as int.
- int glyphEnd: Stores glyph end as int.
- bool missing: Stores missing as bool.
- graphicsWindowsCapturedSourceCluster(int index, int textPositionUtf16, int textLengthUtf16, int sourceStartUtf8, int sourceEndUtf8, int glyphStart, int glyphEnd, bool missing): Graphics windows captured source cluster.
- ValidationIssue(text source, int runUtf16Start, int runUtf16End, int runUtf8Start, int runUtf8End, int glyphCount) returns text: Validation issue.
- Snapshot() returns text: Snapshot.

## Use graphicsWindowsCapturedSourceCluster

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.windows

// Capture Windows text shaping and glyph rasterization for the shared text model.
graphicsWindowsCapturedSourceCluster sample = graphicsWindowsCapturedSourceCluster(1, 1, 1, 1, 1, 1, 1, true)
Console.Log(Text.From(sample.index))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text_windows__graphicswindowscapturedsourcecluster"
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"

[[dependencies]]
package = "graphics.text.windows"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text/windows"

```

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.windows--graphicsWindowsCapturedSourceCluster/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsWindowsCapturedSourceCluster.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.windows

// Validation issue.
graphicsWindowsCapturedSourceCluster instance = graphicsWindowsCapturedSourceCluster(1, 1, 1, 1, 1, 1, 1, true)
text argument_source = "argument source"
int argument_runUtf16Start = 1
int argument_runUtf16End = 1
int argument_runUtf8Start = 1
int argument_runUtf8End = 1
int argument_glyphCount = 1
text result = instance.ValidationIssue(argument_source, argument_runUtf16Start, argument_runUtf16End, argument_runUtf8Start, argument_runUtf8End, argument_glyphCount)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text_windows__graphicswindowscapturedsourcecluster"
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"

[[dependencies]]
package = "graphics.text.windows"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text/windows"

```

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.windows--graphicsWindowsCapturedSourceCluster/method-ValidationIssue-9 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsWindowsCapturedSourceCluster.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.windows

// Snapshot.
graphicsWindowsCapturedSourceCluster instance = graphicsWindowsCapturedSourceCluster(1, 1, 1, 1, 1, 1, 1, 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_windows__graphicswindowscapturedsourcecluster"
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"

[[dependencies]]
package = "graphics.text.windows"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text/windows"

```

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.windows--graphicsWindowsCapturedSourceCluster/method-Snapshot-10 --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/windows/glyph_run_capture.yh

AI training permission: https://demonhunterlabs.com/ai-use
