graphics.text · thing ·

graphicsResolvedFontV2

A graphics resolved font v2 record carrying index, id, family, resourceId, faceIndex, and related state.

cpugraphicsgraphics.textmethodsource-exampletextthingyeho

Shape, measure, and represent text and glyph resources.

external thing graphicsResolvedFontV2

Status: source-declared

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

Use graphicsResolvedFontV2

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

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

graphicsResolvedFontV2.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

// Validation issue.
graphicsResolvedFontV2 instance = graphicsResolvedFontV2(1, "id", "cpu", "resource Id", 1, 1, "style", "example")
text result = instance.ValidationIssue()
Console.Log(Text.From(result))
project.mech
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"

graphicsResolvedFontV2.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

// Snapshot.
graphicsResolvedFontV2 instance = graphicsResolvedFontV2(1, "id", "cpu", "resource Id", 1, 1, "style", "example")
text result = instance.Snapshot()
Console.Log(Text.From(result))
project.mech
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"
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/shaping_v2.yh:30