{"id":"graphics.text--CreateGraphicsShapedRunV2","name":"CreateGraphicsShapedRunV2","owner":"yeho","package":"graphics.text","kind":"function","signature":"external CreateGraphicsShapedRunV2(int index, int sourceStart, int sourceEnd, int clusterStart, int clusterEnd, int glyphStart, int glyphEnd, int fontIndex, text script, text language, text direction, int bidiLevel) returns graphicsShapedRunV2","description":"Create graphics shaped run v2 from the supplied values.","context":"Shape, measure, and represent text and glyph resources.","parameters":[{"name":"index","type":"int","description":"Supply index as int."},{"name":"sourceStart","type":"int","description":"Supply source start as int."},{"name":"sourceEnd","type":"int","description":"Supply source end as int."},{"name":"clusterStart","type":"int","description":"Supply cluster start as int."},{"name":"clusterEnd","type":"int","description":"Supply cluster end as int."},{"name":"glyphStart","type":"int","description":"Supply glyph start as int."},{"name":"glyphEnd","type":"int","description":"Supply glyph end as int."},{"name":"fontIndex","type":"int","description":"Supply font index as int."},{"name":"script","type":"text","description":"Supply script as text."},{"name":"language","type":"text","description":"Supply language as text."},{"name":"direction","type":"text","description":"Supply direction as text."},{"name":"bidiLevel","type":"int","description":"Supply bidi level as int."}],"returns":"graphicsShapedRunV2","members":[],"tags":["cpu","function","graphics","graphics.text","source-example","text","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/graphics/text/shaping_v2.yh","line":842,"sha256":"ad66072d9d12e22ed0e346be3498b8a3747585595527e5bbc916f1184c525ac4"},"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 CreateGraphicsShapedRunV2","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.\nint index = 1\nint sourceStart = 1\nint sourceEnd = 1\nint clusterStart = 1\nint clusterEnd = 1\nint glyphStart = 1\nint glyphEnd = 1\nint fontIndex = 1\ntext script = \"script\"\ntext language = \"language\"\ntext direction = \"direction\"\nint bidiLevel = 1\ngraphicsShapedRunV2 result = CreateGraphicsShapedRunV2(index, sourceStart, sourceEnd, clusterStart, clusterEnd, glyphStart, glyphEnd, fontIndex, script, language, direction, bidiLevel)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_text__creategraphicsshapedrunv2\"\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":"a6021b0778dff69cebdfb9c0a6592365486a4c63c21484aa4b9bc2edb4179b89","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=graphics.text--CreateGraphicsShapedRunV2","json":"https://demonhunterlabs.com/reference/items/graphics.text--CreateGraphicsShapedRunV2.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.text--CreateGraphicsShapedRunV2.md"}
