graphics.text · thing ·

graphicsFontCatalog

A graphics font catalog record carrying resources, diagnostic.

cpugraphicsgraphics.textmethodsource-exampletextthingyeho

Shape, measure, and represent text and glyph resources.

external thing graphicsFontCatalog

Status: source-declared

Fields and methods (5)
list of graphicsFontResource resources
Stores resources as list of graphicsFontResource.
text diagnostic
Stores diagnostic as text.
graphicsFontCatalog()
Graphics font catalog.
Register(graphicsFontResource resource) returns bool
Register. Complete example
Resolve(text family, int weight, text style, text source) returns text
Resolve. Complete example

Use graphicsFontCatalog

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.
graphicsFontCatalog sample = graphicsFontCatalog()
Console.Log(Text.From(sample.diagnostic))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicsfontcatalog"
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"

graphicsFontCatalog.Register

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

// Register.
graphicsFontCatalog instance = graphicsFontCatalog()
graphicsFontResource argument_resource = graphicsFontResource("id", "cpu", "source Uri", "png", 1, 1, "styles", "example")
bool result = instance.Register(argument_resource)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicsfontcatalog"
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"

graphicsFontCatalog.Resolve

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

// Resolve.
graphicsFontCatalog instance = graphicsFontCatalog()
text argument_family = "argument family"
int argument_weight = 1
text argument_style = "argument style"
text argument_source = "argument source"
text result = instance.Resolve(argument_family, argument_weight, argument_style, argument_source)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__graphicsfontcatalog"
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:101