graphics.text.windows · thing ·

graphicsWindowsCapturedGlyphRun

A graphics windows captured glyph run record carrying sequence, 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 graphicsWindowsCapturedGlyphRun

Status: source-declared

Fields and methods (20)
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. Complete example
SourceClusterIssue(text source) returns text
Source cluster issue. Complete example
ValidationIssue(text source, int utf16Length, int utf8Length) returns text
Validation issue. Complete example
Snapshot() returns text
Snapshot. Complete example

Use graphicsWindowsCapturedGlyphRun

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.
graphicsWindowsCapturedGlyphRun sample = graphicsWindowsCapturedGlyphRun(1, 1, 1, 1, "direction", true, 1, 1, 1)
Console.Log(Text.From(sample.sequence))
project.mech
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"

graphicsWindowsCapturedGlyphRun.BuildSourceClusters

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

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

graphicsWindowsCapturedGlyphRun.SourceClusterIssue

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

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

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

graphicsWindowsCapturedGlyphRun.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.
graphicsWindowsCapturedGlyphRun instance = graphicsWindowsCapturedGlyphRun(1, 1, 1, 1, "direction", true, 1, 1, 1)
text result = instance.Snapshot()
Console.Log(Text.From(result))
project.mech
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"
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:220