{"id":"graphics.text--CreateGraphicsTextMeasureRequest","name":"CreateGraphicsTextMeasureRequest","owner":"yeho","package":"graphics.text","kind":"function","signature":"external CreateGraphicsTextMeasureRequest(graphicsTextRun run, text fontFamilyToken, text fontSizeToken, text weight, text lineHeightToken, int maxWidth) returns graphicsTextMeasureRequest","description":"Create graphics text measure request from the supplied values.","context":"Shape, measure, and represent text and glyph resources.","parameters":[{"name":"run","type":"graphicsTextRun","description":"Supply run as graphicsTextRun."},{"name":"fontFamilyToken","type":"text","description":"Supply font family token as text."},{"name":"fontSizeToken","type":"text","description":"Supply font size token as text."},{"name":"weight","type":"text","description":"Supply weight as text."},{"name":"lineHeightToken","type":"text","description":"Supply line height token as text."},{"name":"maxWidth","type":"int","description":"Supply max width as int."}],"returns":"graphicsTextMeasureRequest","members":[],"tags":["cpu","function","graphics","graphics.text","source-example","text","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/graphics/text/text.yh","line":104,"sha256":"960ad0d330e47b3966c95530907649dd2ad38ddbc16cc2530eaeb252c64f5170"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use CreateGraphicsTextMeasureRequest","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using graphics.text\n\n// Shape, measure, and represent text and glyph resources.\ngraphicsTextRun run = graphicsTextRun(\"value\", \"style Ref\", \"overflow\", \"alignment\")\ntext fontFamilyToken = \"font Family Token\"\ntext fontSizeToken = \"font Size Token\"\ntext weight = \"weight\"\ntext lineHeightToken = \"line Height Token\"\nint maxWidth = 1\ngraphicsTextMeasureRequest result = CreateGraphicsTextMeasureRequest(run, fontFamilyToken, fontSizeToken, weight, lineHeightToken, maxWidth)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_text__creategraphicstextmeasurerequest\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"4cd333baea54a5c7afe74471615e0ff24f9f506d3c707c9f01837865f5fc1098","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=graphics.text--CreateGraphicsTextMeasureRequest","json":"https://demonhunterlabs.com/reference/items/graphics.text--CreateGraphicsTextMeasureRequest.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.text--CreateGraphicsTextMeasureRequest.md"}
