{"id":"graphics.text--MeasureGraphicsShapedText","name":"MeasureGraphicsShapedText","owner":"yeho","package":"graphics.text","kind":"function","signature":"external MeasureGraphicsShapedText(graphicsShapedText shaped, int maximumWidth) returns graphicsTextMeasureResult","description":"Measure graphics shaped text.","context":"Shape, measure, and represent text and glyph resources.","parameters":[{"name":"shaped","type":"graphicsShapedText","description":"Supply shaped as graphicsShapedText."},{"name":"maximumWidth","type":"int","description":"Supply maximum width as int."}],"returns":"graphicsTextMeasureResult","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":114,"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 MeasureGraphicsShapedText","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.\ngraphicsShapedText shaped = graphicsShapedText(\"value\", graphicsFontReference(\"cpu\", \"fallback Families\", 1, 1, 1, \"style\", \"features\", \"example\"), \"locale\", \"direction\", 1, 1, 1, \"example\")\nint maximumWidth = 1\ngraphicsTextMeasureResult result = MeasureGraphicsShapedText(shaped, maximumWidth)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_text__measuregraphicsshapedtext\"\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":"b30b0e2dfbb875d78c60dcd39fbfa3d49f8cfd9811bdb6ad224a70da36e9f601","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=graphics.text--MeasureGraphicsShapedText","json":"https://demonhunterlabs.com/reference/items/graphics.text--MeasureGraphicsShapedText.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.text--MeasureGraphicsShapedText.md"}
