graphics.text.windows · thing ·

graphicsWindowsCapturedSourceCluster

A graphics windows captured source cluster record carrying index, textPositionUtf16, textLengthUtf16, sourceStartUtf8, sourceEndUtf8, and related state.

cpugraphicsgraphics.text.windowsmethodsource-exampletextthingwindowsyeho

Capture Windows text shaping and glyph rasterization for the shared text model.

external thing graphicsWindowsCapturedSourceCluster

Status: source-declared

Fields and methods (11)
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. Complete example
Snapshot() returns text
Snapshot. Complete example

Use graphicsWindowsCapturedSourceCluster

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

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))
project.mech
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"

graphicsWindowsCapturedSourceCluster.ValidationIssue

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

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))
project.mech
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"

graphicsWindowsCapturedSourceCluster.Snapshot

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

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))
project.mech
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"
Notes and source

Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

yeho/packages/graphics/text/windows/glyph_run_capture.yh:174