{"id":"graphics.text--CreateGraphicsTextMetricsV2","name":"CreateGraphicsTextMetricsV2","owner":"yeho","package":"graphics.text","kind":"function","signature":"external CreateGraphicsTextMetricsV2(int ascentQ26_6, int descentQ26_6, int lineGapQ26_6, int capHeightQ26_6, int xHeightQ26_6, int underlinePositionQ26_6, int underlineThicknessQ26_6, int advanceXQ26_6, int advanceYQ26_6) returns graphicsTextMetricsV2","description":"Create graphics text metrics v2 from the supplied values.","context":"Shape, measure, and represent text and glyph resources.","parameters":[{"name":"ascentQ26_6","type":"int","description":"Supply ascent q26 6 as int."},{"name":"descentQ26_6","type":"int","description":"Supply descent q26 6 as int."},{"name":"lineGapQ26_6","type":"int","description":"Supply line gap q26 6 as int."},{"name":"capHeightQ26_6","type":"int","description":"Supply cap height q26 6 as int."},{"name":"xHeightQ26_6","type":"int","description":"Supply x height q26 6 as int."},{"name":"underlinePositionQ26_6","type":"int","description":"Supply underline position q26 6 as int."},{"name":"underlineThicknessQ26_6","type":"int","description":"Supply underline thickness q26 6 as int."},{"name":"advanceXQ26_6","type":"int","description":"Supply advance xq26 6 as int."},{"name":"advanceYQ26_6","type":"int","description":"Supply advance yq26 6 as int."}],"returns":"graphicsTextMetricsV2","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":847,"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 CreateGraphicsTextMetricsV2","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 ascentQ26_6 = 1\nint descentQ26_6 = 1\nint lineGapQ26_6 = 1\nint capHeightQ26_6 = 1\nint xHeightQ26_6 = 1\nint underlinePositionQ26_6 = 1\nint underlineThicknessQ26_6 = 1\nint advanceXQ26_6 = 1\nint advanceYQ26_6 = 1\ngraphicsTextMetricsV2 result = CreateGraphicsTextMetricsV2(ascentQ26_6, descentQ26_6, lineGapQ26_6, capHeightQ26_6, xHeightQ26_6, underlinePositionQ26_6, underlineThicknessQ26_6, advanceXQ26_6, advanceYQ26_6)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_text__creategraphicstextmetricsv2\"\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":"7da6cf8dfc021758d299ac6e03ef1c28b9cd3e477bb4b02145245260d7b1d695","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=graphics.text--CreateGraphicsTextMetricsV2","json":"https://demonhunterlabs.com/reference/items/graphics.text--CreateGraphicsTextMetricsV2.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.text--CreateGraphicsTextMetricsV2.md"}
