# graphicsFontCatalog

A graphics font catalog record carrying resources, diagnostic.

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 graphicsFontCatalog
```

- 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.
- Resolve(text family, int weight, text style, text source) returns text: Resolve.

## Use graphicsFontCatalog

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.
graphicsFontCatalog sample = graphicsFontCatalog()
Console.Log(Text.From(sample.diagnostic))

```

Save this beside start.yh as project.mech:

```toml
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"

```

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--graphicsFontCatalog/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsFontCatalog.Register

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
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))

```

Save this beside start.yh as project.mech:

```toml
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"

```

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--graphicsFontCatalog/method-Register-3 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsFontCatalog.Resolve

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
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))

```

Save this beside start.yh as project.mech:

```toml
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"

```

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--graphicsFontCatalog/method-Resolve-4 --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.yh

AI training permission: https://demonhunterlabs.com/ai-use
