# graphicsResolvedFontV2

A graphics resolved font v2 record carrying index, id, family, resourceId, faceIndex, 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 graphicsResolvedFontV2
```

- int index: Stores index as int.
- text id: Stores id as text.
- text family: Stores family as text.
- text resourceId: Stores resource id as text.
- int faceIndex: Stores face index as int.
- int weight: Stores weight as int.
- text style: Stores style as text.
- text source: Stores source as text.
- graphicsResolvedFontV2(int index, text id, text family, text resourceId, int faceIndex, int weight, text style, text source): Graphics resolved font v2.
- ValidationIssue() returns text: Validation issue.
- Snapshot() returns text: Snapshot.

## Use graphicsResolvedFontV2

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.
graphicsResolvedFontV2 sample = graphicsResolvedFontV2(1, "id", "cpu", "resource Id", 1, 1, "style", "example")
Console.Log(Text.From(sample.index))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicsresolvedfontv2"
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--graphicsResolvedFontV2/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsResolvedFontV2.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.
graphicsResolvedFontV2 instance = graphicsResolvedFontV2(1, "id", "cpu", "resource Id", 1, 1, "style", "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__graphicsresolvedfontv2"
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--graphicsResolvedFontV2/method-ValidationIssue-9 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsResolvedFontV2.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.
graphicsResolvedFontV2 instance = graphicsResolvedFontV2(1, "id", "cpu", "resource Id", 1, 1, "style", "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__graphicsresolvedfontv2"
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--graphicsResolvedFontV2/method-Snapshot-10 --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
