# graphicsTextMeasureRequest

A graphics text measure request record carrying run, fontFamilyToken, fontSizeToken, weight, lineHeightToken, and related state.

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 graphicsTextMeasureRequest
```

- graphicsTextRun run: Stores run as graphicsTextRun.
- text fontFamilyToken: Stores font family token as text.
- text fontSizeToken: Stores font size token as text.
- text weight: Stores weight as text.
- text lineHeightToken: Stores line height token as text.
- int maxWidth: Stores max width as int.
- graphicsTextMeasureRequest(graphicsTextRun run, text fontFamilyToken, text fontSizeToken, text weight, text lineHeightToken, int maxWidth): Graphics text measure request.
- Describe() returns text: Describe.

## Use graphicsTextMeasureRequest

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.
graphicsTextMeasureRequest sample = graphicsTextMeasureRequest(graphicsTextRun("value", "style Ref", "overflow", "alignment"), "font Family Token", "font Size Token", "weight", "line Height Token", 1)
Console.Log(Text.From(sample.fontFamilyToken))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicstextmeasurerequest"
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--graphicsTextMeasureRequest/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsTextMeasureRequest.Describe

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.text

// Describe.
graphicsTextMeasureRequest instance = graphicsTextMeasureRequest(graphicsTextRun("value", "style Ref", "overflow", "alignment"), "font Family Token", "font Size Token", "weight", "line Height Token", 1)
text result = instance.Describe()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_text__graphicstextmeasurerequest"
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--graphicsTextMeasureRequest/method-Describe-7 --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/text.yh

AI training permission: https://demonhunterlabs.com/ai-use
