# graphicsWindowsCapturedGlyphRun

A graphics windows captured glyph run record carrying sequence, 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 graphicsWindowsCapturedGlyphRun
```

- int sequence: Stores sequence 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 bidiLevel: Stores bidi level as int.
- text direction: Stores direction as text.
- bool sideways: Stores sideways as bool.
- int measuringMode: Stores measuring mode as int.
- int baselineXQ26_6: Stores baseline xq26 6 as int.
- int baselineYQ26_6: Stores baseline yq26 6 as int.
- int fontIdentityIndex: Stores font identity index as int.
- list of int clusterMap: Stores cluster map as list of int.
- list of graphicsWindowsCapturedSourceCluster sourceClusters: Stores source clusters as list of graphicsWindowsCapturedSourceCluster.
- list of graphicsWindowsCapturedGlyph glyphs: Stores glyphs as list of graphicsWindowsCapturedGlyph.
- graphicsWindowsCapturedGlyphRun(int sequence, int textPositionUtf16, int textLengthUtf16, int bidiLevel, text direction, bool sideways, int measuringMode, int baselineXQ26_6, int baselineYQ26_6): Graphics windows captured glyph run.
- BuildSourceClusters(list of int utf16ToUtf8Boundaries) returns bool: Build source clusters.
- SourceClusterIssue(text source) returns text: Source cluster issue.
- ValidationIssue(text source, int utf16Length, int utf8Length) returns text: Validation issue.
- Snapshot() returns text: Snapshot.

## Use graphicsWindowsCapturedGlyphRun

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.
graphicsWindowsCapturedGlyphRun sample = graphicsWindowsCapturedGlyphRun(1, 1, 1, 1, "direction", true, 1, 1, 1)
Console.Log(Text.From(sample.sequence))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text_windows__graphicswindowscapturedglyphrun"
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--graphicsWindowsCapturedGlyphRun/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsWindowsCapturedGlyphRun.BuildSourceClusters

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

// Build source clusters.
graphicsWindowsCapturedGlyphRun instance = graphicsWindowsCapturedGlyphRun(1, 1, 1, 1, "direction", true, 1, 1, 1)
list of int argument_utf16ToUtf8Boundaries = []
bool result = instance.BuildSourceClusters(argument_utf16ToUtf8Boundaries)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text_windows__graphicswindowscapturedglyphrun"
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--graphicsWindowsCapturedGlyphRun/method-BuildSourceClusters-16 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsWindowsCapturedGlyphRun.SourceClusterIssue

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

// Source cluster issue.
graphicsWindowsCapturedGlyphRun instance = graphicsWindowsCapturedGlyphRun(1, 1, 1, 1, "direction", true, 1, 1, 1)
text argument_source = "argument source"
text result = instance.SourceClusterIssue(argument_source)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text_windows__graphicswindowscapturedglyphrun"
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--graphicsWindowsCapturedGlyphRun/method-SourceClusterIssue-17 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsWindowsCapturedGlyphRun.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.
graphicsWindowsCapturedGlyphRun instance = graphicsWindowsCapturedGlyphRun(1, 1, 1, 1, "direction", true, 1, 1, 1)
text argument_source = "argument source"
int argument_utf16Length = 1
int argument_utf8Length = 1
text result = instance.ValidationIssue(argument_source, argument_utf16Length, argument_utf8Length)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text_windows__graphicswindowscapturedglyphrun"
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--graphicsWindowsCapturedGlyphRun/method-ValidationIssue-18 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsWindowsCapturedGlyphRun.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.
graphicsWindowsCapturedGlyphRun instance = graphicsWindowsCapturedGlyphRun(1, 1, 1, 1, "direction", true, 1, 1, 1)
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__graphicswindowscapturedglyphrun"
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--graphicsWindowsCapturedGlyphRun/method-Snapshot-19 --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
