graphics.text · thing ·
graphicsTextMeasureRequest
A graphics text measure request record carrying run, fontFamilyToken, fontSizeToken, weight, lineHeightToken, and related state.
Shape, measure, and represent text and glyph resources.
external thing graphicsTextMeasureRequestStatus: source-declared
Fields and methods (8)
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. Complete example
Use graphicsTextMeasureRequest
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.
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))
project.mech
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"
graphicsTextMeasureRequest.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.
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))
project.mech
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"
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/text.yh:53