graphics.text · thing ·

graphicsFontReference

A graphics font reference record carrying family, fallbackFamilies, weight, size, lineHeight, and related state.

cpugraphicsgraphics.textmethodsource-exampletextthingyeho

Shape, measure, and represent text and glyph resources.

external thing graphicsFontReference

Status: source-declared

Fields and methods (11)
text family
Stores family as text.
text fallbackFamilies
Stores fallback families as text.
int weight
Stores weight as int.
int size
Stores size as int.
int lineHeight
Stores line height as int.
text style
Stores style as text.
text features
Stores features as text.
text source
Stores source as text.
graphicsFontReference(text family, text fallbackFamilies, int weight, int size, int lineHeight, text style, text features, text source)
Graphics font reference.
ValidationIssue() returns text
Validation issue. Complete example
CacheIdentity(text locale, int scalePercent) returns text
Cache identity. Complete example

Use graphicsFontReference

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.
graphicsFontReference sample = graphicsFontReference("cpu", "fallback Families", 1, 1, 1, "style", "features", "example")
Console.Log(Text.From(sample.family))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicsfontreference"
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"

graphicsFontReference.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.
graphicsFontReference instance = graphicsFontReference("cpu", "fallback Families", 1, 1, 1, "style", "features", "example")
text result = instance.ValidationIssue()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicsfontreference"
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"

graphicsFontReference.CacheIdentity

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

// Cache identity.
graphicsFontReference instance = graphicsFontReference("cpu", "fallback Families", 1, 1, 1, "style", "features", "example")
text argument_locale = "argument locale"
int argument_scalePercent = 1
text result = instance.CacheIdentity(argument_locale, argument_scalePercent)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicsfontreference"
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.yh:5