graphics.text · thing ·
graphicsFontResource
A graphics font resource record carrying id, family, sourceUri, format, minimumWeight, and related state.
Shape, measure, and represent text and glyph resources.
external thing graphicsFontResourceStatus: source-declared
Fields and methods (11)
text id- Stores id as text.
text family- Stores family as text.
text sourceUri- Stores source uri as text.
text format- Stores format as text.
int minimumWeight- Stores minimum weight as int.
int maximumWeight- Stores maximum weight as int.
text styles- Stores styles as text.
text source- Stores source as text.
graphicsFontResource(text id, text family, text sourceUri, text format, int minimumWeight, int maximumWeight, text styles, text source)- Graphics font resource.
ValidationIssue() returns text- Validation issue. Complete example
Describe() returns text- Describe. Complete example
Use graphicsFontResource
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.
graphicsFontResource sample = graphicsFontResource("id", "cpu", "source Uri", "png", 1, 1, "styles", "example")
Console.Log(Text.From(sample.id))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicsfontresource"
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"
graphicsFontResource.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.
graphicsFontResource instance = graphicsFontResource("id", "cpu", "source Uri", "png", 1, 1, "styles", "example")
text result = instance.ValidationIssue()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicsfontresource"
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"
graphicsFontResource.Describe
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
// Describe.
graphicsFontResource instance = graphicsFontResource("id", "cpu", "source Uri", "png", 1, 1, "styles", "example")
text result = instance.Describe()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicsfontresource"
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:55