{"id":"graphics.text--graphicsShapedText","name":"graphicsShapedText","owner":"yeho","package":"graphics.text","kind":"thing","signature":"external thing graphicsShapedText","description":"A graphics shaped text record carrying value, font, locale, direction, clusters, and related state.","context":"Shape, measure, and represent text and glyph resources.","parameters":[],"returns":"void","members":[{"name":"value","kind":"field","type":"text","description":"Stores value as text.","signature":"text value","tags":["thing","field","graphics.text"],"updated":"2026-09-09"},{"name":"font","kind":"field","type":"graphicsFontReference","description":"Stores font as graphicsFontReference.","signature":"graphicsFontReference font","tags":["thing","field","graphics.text"],"updated":"2026-09-09"},{"name":"locale","kind":"field","type":"text","description":"Stores locale as text.","signature":"text locale","tags":["thing","field","graphics.text"],"updated":"2026-09-09"},{"name":"direction","kind":"field","type":"text","description":"Stores direction as text.","signature":"text direction","tags":["thing","field","graphics.text"],"updated":"2026-09-09"},{"name":"clusters","kind":"field","type":"list of graphicsGlyphCluster","description":"Stores clusters as list of graphicsGlyphCluster.","signature":"list of graphicsGlyphCluster clusters","tags":["thing","field","graphics.text"],"updated":"2026-09-09"},{"name":"ascent","kind":"field","type":"int","description":"Stores ascent as int.","signature":"int ascent","tags":["thing","field","graphics.text"],"updated":"2026-09-09"},{"name":"descent","kind":"field","type":"int","description":"Stores descent as int.","signature":"int descent","tags":["thing","field","graphics.text"],"updated":"2026-09-09"},{"name":"lineGap","kind":"field","type":"int","description":"Stores line gap as int.","signature":"int lineGap","tags":["thing","field","graphics.text"],"updated":"2026-09-09"},{"name":"source","kind":"field","type":"text","description":"Stores source as text.","signature":"text source","tags":["thing","field","graphics.text"],"updated":"2026-09-09"},{"name":"diagnostic","kind":"field","type":"text","description":"Stores diagnostic as text.","signature":"text diagnostic","tags":["thing","field","graphics.text"],"updated":"2026-09-09"},{"name":"graphicsShapedText","kind":"constructor","parameters":[{"name":"value","type":"text","description":"Value."},{"name":"font","type":"graphicsFontReference","description":"Font."},{"name":"locale","type":"text","description":"Locale."},{"name":"direction","type":"text","description":"Direction."},{"name":"ascent","type":"int","description":"Ascent."},{"name":"descent","type":"int","description":"Descent."},{"name":"lineGap","type":"int","description":"Line gap."},{"name":"source","type":"text","description":"Source."}],"returns":"void","signature":"graphicsShapedText(text value, graphicsFontReference font, text locale, text direction, int ascent, int descent, int lineGap, text source)","description":"Graphics shaped text.","tags":["thing","constructor","graphics.text"],"updated":"2026-09-09"},{"name":"AddCluster","kind":"method","parameters":[{"name":"cluster","type":"graphicsGlyphCluster","description":"Cluster."}],"returns":"bool","signature":"AddCluster(graphicsGlyphCluster cluster) returns bool","description":"Add cluster.","tags":["thing","method","graphics.text"],"exampleId":"method-AddCluster-11","updated":"2026-09-09"},{"name":"ValidationIssue","kind":"method","parameters":[],"returns":"text","signature":"ValidationIssue() returns text","description":"Validation issue.","tags":["thing","method","graphics.text"],"exampleId":"method-ValidationIssue-12","updated":"2026-09-09"},{"name":"Width","kind":"method","parameters":[],"returns":"int","signature":"Width() returns int","description":"Width.","tags":["thing","method","graphics.text"],"exampleId":"method-Width-13","updated":"2026-09-09"},{"name":"MissingGlyphCount","kind":"method","parameters":[],"returns":"int","signature":"MissingGlyphCount() returns int","description":"Missing glyph count.","tags":["thing","method","graphics.text"],"exampleId":"method-MissingGlyphCount-14","updated":"2026-09-09"},{"name":"RenderReport","kind":"method","parameters":[],"returns":"text","signature":"RenderReport() returns text","description":"Render report.","tags":["thing","method","graphics.text"],"exampleId":"method-RenderReport-15","updated":"2026-09-09"}],"tags":["cpu","graphics","graphics.text","method","source-example","text","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/graphics/text/shaping.yh","line":202,"sha256":"116949dcf311dd0fd246fd1f36696a40bd178e892887dff1d1d515316e09b6c5"},"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 graphicsShapedText","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 sample = graphicsShapedText(\"value\", graphicsFontReference(\"cpu\", \"fallback Families\", 1, 1, 1, \"style\", \"features\", \"example\"), \"locale\", \"direction\", 1, 1, 1, \"example\")\nConsole.Log(Text.From(sample.value))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_text__graphicsshapedtext\"\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":"ce350ad03bf0fb9a2465feb58b81c15bbb47313935a91257b9f7855f7fd6214f","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-AddCluster-11","title":"graphicsShapedText.AddCluster","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using graphics.text\n\n// Add cluster.\ngraphicsShapedText instance = graphicsShapedText(\"value\", graphicsFontReference(\"cpu\", \"fallback Families\", 1, 1, 1, \"style\", \"features\", \"example\"), \"locale\", \"direction\", 1, 1, 1, \"example\")\ngraphicsGlyphCluster argument_cluster = graphicsGlyphCluster(\"value\", 1, 1, \"glyph Id\", 1, \"font Family\", \"script\", 1, true, true)\nbool result = instance.AddCluster(argument_cluster)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_text__graphicsshapedtext\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"179d74c429b3ee259c92b0897c483c813ccff4fbdce6f90d549559ea7804cd73","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ValidationIssue-12","title":"graphicsShapedText.ValidationIssue","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using graphics.text\n\n// Validation issue.\ngraphicsShapedText instance = graphicsShapedText(\"value\", graphicsFontReference(\"cpu\", \"fallback Families\", 1, 1, 1, \"style\", \"features\", \"example\"), \"locale\", \"direction\", 1, 1, 1, \"example\")\ntext result = instance.ValidationIssue()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_text__graphicsshapedtext\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"4e1532dd9bdbcb0b5fff52a8daf77dd451d64f4af2671c1d7154a240d0fe552f","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Width-13","title":"graphicsShapedText.Width","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using graphics.text\n\n// Width.\ngraphicsShapedText instance = graphicsShapedText(\"value\", graphicsFontReference(\"cpu\", \"fallback Families\", 1, 1, 1, \"style\", \"features\", \"example\"), \"locale\", \"direction\", 1, 1, 1, \"example\")\nint result = instance.Width()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_text__graphicsshapedtext\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"3b516c3e4da46b14aac65b350c26f6cd7b47b375609fe2a2a7ed97367b109274","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-MissingGlyphCount-14","title":"graphicsShapedText.MissingGlyphCount","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using graphics.text\n\n// Missing glyph count.\ngraphicsShapedText instance = graphicsShapedText(\"value\", graphicsFontReference(\"cpu\", \"fallback Families\", 1, 1, 1, \"style\", \"features\", \"example\"), \"locale\", \"direction\", 1, 1, 1, \"example\")\nint result = instance.MissingGlyphCount()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_text__graphicsshapedtext\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"b23ff7b9ff2e8ef064bfaf45e8c4d4c4f595bfd4792e3d62fdf2e5667636c6d7","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-RenderReport-15","title":"graphicsShapedText.RenderReport","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using graphics.text\n\n// Render report.\ngraphicsShapedText instance = graphicsShapedText(\"value\", graphicsFontReference(\"cpu\", \"fallback Families\", 1, 1, 1, \"style\", \"features\", \"example\"), \"locale\", \"direction\", 1, 1, 1, \"example\")\ntext result = instance.RenderReport()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_text__graphicsshapedtext\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"5ffc8d802b8608aad0d0ccbc4d70673d5002051a5e5ba0e1cf0f19104be631bd","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["value","font","locale","direction","clusters","ascent","descent","lineGap","source","diagnostic","graphicsShapedText","AddCluster","ValidationIssue","Width","MissingGlyphCount","RenderReport"],"url":"https://demonhunterlabs.com/academy/api?item=graphics.text--graphicsShapedText","json":"https://demonhunterlabs.com/reference/items/graphics.text--graphicsShapedText.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.text--graphicsShapedText.md"}
