# graphicsWindowsCapturedScriptSpan

A graphics windows captured script span record carrying index, sourceStartUtf16, sourceLengthUtf16, isoScriptCode, script, 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 graphicsWindowsCapturedScriptSpan
```

- int index: Stores index as int.
- int sourceStartUtf16: Stores source start utf16 as int.
- int sourceLengthUtf16: Stores source length utf16 as int.
- int isoScriptCode: Stores iso script code as int.
- text script: Stores script as text.
- int shapes: Stores shapes as int.
- graphicsWindowsCapturedScriptSpan(int index, int sourceStartUtf16, int sourceLengthUtf16, int isoScriptCode, text script, int shapes): Graphics windows captured script span.
- ValidationIssue(text source, int utf16Length) returns text: Validation issue.

## Use graphicsWindowsCapturedScriptSpan

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.
graphicsWindowsCapturedScriptSpan sample = graphicsWindowsCapturedScriptSpan(1, 1, 1, 1, "script", 1)
Console.Log(Text.From(sample.index))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text_windows__graphicswindowscapturedscriptspan"
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--graphicsWindowsCapturedScriptSpan/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsWindowsCapturedScriptSpan.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.
graphicsWindowsCapturedScriptSpan instance = graphicsWindowsCapturedScriptSpan(1, 1, 1, 1, "script", 1)
text argument_source = "argument source"
int argument_utf16Length = 1
text result = instance.ValidationIssue(argument_source, argument_utf16Length)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text_windows__graphicswindowscapturedscriptspan"
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--graphicsWindowsCapturedScriptSpan/method-ValidationIssue-7 --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
