# graphicsShapedTextV2

A graphics shaped text v2 record carrying schema, value, locale, direction, provider, and related state.

Last updated: 2026-09-09

Package: graphics.text | Status: source-declared

Tags: cpu, graphics, graphics.text, method, source-example, text, thing, yeho

Shape, measure, and represent text and glyph resources.

```yh
external thing graphicsShapedTextV2
```

- text schema: Stores schema as text.
- text value: Stores value as text.
- text locale: Stores locale as text.
- text direction: Stores direction as text.
- text provider: Stores provider as text.
- text source: Stores source as text.
- list of graphicsResolvedFontV2 fonts: Stores fonts as list of graphicsResolvedFontV2.
- list of graphicsShapedRunV2 runs: Stores runs as list of graphicsShapedRunV2.
- list of graphicsGlyphClusterV2 clusters: Stores clusters as list of graphicsGlyphClusterV2.
- list of graphicsShapedGlyphV2 glyphs: Stores glyphs as list of graphicsShapedGlyphV2.
- graphicsTextMetricsV2 metrics: Stores metrics as graphicsTextMetricsV2.
- text diagnostic: Stores diagnostic as text.
- graphicsShapedTextV2(text value, text locale, text direction, text provider, graphicsTextMetricsV2 metrics, text source): Graphics shaped text v2.
- Reject(text issue) returns bool: Reject.
- AddFont(graphicsResolvedFontV2 font) returns bool: Add font.
- AddGlyph(graphicsShapedGlyphV2 glyph) returns bool: Add glyph.
- AddCluster(graphicsGlyphClusterV2 cluster) returns bool: Add cluster.
- AddRun(graphicsShapedRunV2 run) returns bool: Add run.
- StoredEntryIssue() returns text: Stored entry issue.
- ClusterCoverageIssue() returns text: Cluster coverage issue.
- RunCoverageIssue() returns text: Run coverage issue.
- AdvanceIssue() returns text: Advance issue.
- ValidationIssue() returns text: Validation issue.
- Finalize() returns bool: Finalize.
- MissingGlyphCount() returns int: Missing glyph count.
- MissingClusterCount() returns int: Missing cluster count.
- HasScript(text script) returns bool: Has script.
- UsesFallbackFrom(text requestedFamily) returns bool: Uses fallback from.
- MissingGlyphDiagnostic() returns text: Missing glyph diagnostic.
- Snapshot() returns text: Snapshot.

## Use graphicsShapedTextV2

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

// Shape, measure, and represent text and glyph resources.
graphicsShapedTextV2 sample = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
Console.Log(Text.From(sample.schema))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.Reject

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Reject.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
text argument_issue = "argument issue"
bool result = instance.Reject(argument_issue)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-Reject-13 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.AddFont

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Add font.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
graphicsResolvedFontV2 argument_font = graphicsResolvedFontV2(1, "id", "cpu", "resource Id", 1, 1, "style", "example")
bool result = instance.AddFont(argument_font)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-AddFont-14 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.AddGlyph

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Add glyph.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
graphicsShapedGlyphV2 argument_glyph = graphicsShapedGlyphV2(1, 1, 1, 1, 1, 1, true)
bool result = instance.AddGlyph(argument_glyph)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-AddGlyph-15 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.AddCluster

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Add cluster.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
graphicsGlyphClusterV2 argument_cluster = graphicsGlyphClusterV2(1, 1, 1, 1, 1, "script", 1, true, true, true)
bool result = instance.AddCluster(argument_cluster)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-AddCluster-16 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.AddRun

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Add run.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
graphicsShapedRunV2 argument_run = graphicsShapedRunV2(1, 1, 1, 1, 1, 1, 1, 1, "script", "language", "direction", 1)
bool result = instance.AddRun(argument_run)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-AddRun-17 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.StoredEntryIssue

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Stored entry issue.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
text result = instance.StoredEntryIssue()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-StoredEntryIssue-18 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.ClusterCoverageIssue

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Cluster coverage issue.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
text result = instance.ClusterCoverageIssue()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-ClusterCoverageIssue-19 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.RunCoverageIssue

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Run coverage issue.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
text result = instance.RunCoverageIssue()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-RunCoverageIssue-20 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.AdvanceIssue

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Advance issue.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
text result = instance.AdvanceIssue()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-AdvanceIssue-21 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.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

// Validation issue.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
text result = instance.ValidationIssue()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-ValidationIssue-22 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.Finalize

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Finalize.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
bool result = instance.Finalize()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-Finalize-23 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.MissingGlyphCount

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Missing glyph count.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
int result = instance.MissingGlyphCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-MissingGlyphCount-24 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.MissingClusterCount

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Missing cluster count.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
int result = instance.MissingClusterCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-MissingClusterCount-25 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.HasScript

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Has script.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
text argument_script = "argument script"
bool result = instance.HasScript(argument_script)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-HasScript-26 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.UsesFallbackFrom

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Uses fallback from.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
text argument_requestedFamily = "argument requested Family"
bool result = instance.UsesFallbackFrom(argument_requestedFamily)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-UsesFallbackFrom-27 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.MissingGlyphDiagnostic

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Missing glyph diagnostic.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
text result = instance.MissingGlyphDiagnostic()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-MissingGlyphDiagnostic-28 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsShapedTextV2.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

// Snapshot.
graphicsShapedTextV2 instance = graphicsShapedTextV2("value", "locale", "direction", "provider", graphicsTextMetricsV2(1, 1, 1, 1, 1, 1, 1, 1, 1), "example")
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__graphicsshapedtextv2"
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"

```

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--graphicsShapedTextV2/method-Snapshot-29 --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/shaping_v2.yh

AI training permission: https://demonhunterlabs.com/ai-use
