{"id":"graphics.text.windows--MeasureGraphicsWindowsTextGeometry","name":"MeasureGraphicsWindowsTextGeometry","owner":"yeho","package":"graphics.text.windows","kind":"function","signature":"external MeasureGraphicsWindowsTextGeometry(text value, text family, text locale, int weight, int sizeQ26_6, int maximumWidthQ26_6, int maximumHeightQ26_6, int pointXQ26_6, int pointYQ26_6, int candidateUtf16Position, bool candidateTrailing, int selectionStart, int selectionLength, text source) returns graphicsWindowsTextLayoutGeometrySnapshot","description":"Measure graphics windows text geometry.","context":"Capture Windows text shaping and glyph rasterization for the shared text model.","parameters":[{"name":"value","type":"text","description":"Supply value as text."},{"name":"family","type":"text","description":"Supply family as text."},{"name":"locale","type":"text","description":"Supply locale as text."},{"name":"weight","type":"int","description":"Supply weight as int."},{"name":"sizeQ26_6","type":"int","description":"Supply size q26 6 as int."},{"name":"maximumWidthQ26_6","type":"int","description":"Supply maximum width q26 6 as int."},{"name":"maximumHeightQ26_6","type":"int","description":"Supply maximum height q26 6 as int."},{"name":"pointXQ26_6","type":"int","description":"Supply point xq26 6 as int."},{"name":"pointYQ26_6","type":"int","description":"Supply point yq26 6 as int."},{"name":"candidateUtf16Position","type":"int","description":"Supply candidate utf16 position as int."},{"name":"candidateTrailing","type":"bool","description":"Supply candidate trailing as bool."},{"name":"selectionStart","type":"int","description":"Supply selection start as int."},{"name":"selectionLength","type":"int","description":"Supply selection length as int."},{"name":"source","type":"text","description":"Supply source as text."}],"returns":"graphicsWindowsTextLayoutGeometrySnapshot","members":[],"tags":["cpu","function","graphics","graphics.text.windows","source-example","text","windows","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/graphics/text/windows/layout_geometry.yh","line":396,"sha256":"c47887c7cea19d7b7ec453b685dd0308764521031754827b52583cf4cdc64044"},"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 MeasureGraphicsWindowsTextGeometry","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using graphics.text.windows\n\n// Capture Windows text shaping and glyph rasterization for the shared text model.\ntext value = \"value\"\ntext family = \"cpu\"\ntext locale = \"locale\"\nint weight = 1\nint sizeQ26_6 = 1\nint maximumWidthQ26_6 = 1\nint maximumHeightQ26_6 = 1\nint pointXQ26_6 = 1\nint pointYQ26_6 = 1\nint candidateUtf16Position = 1\nbool candidateTrailing = true\nint selectionStart = 1\nint selectionLength = 1\ntext source = \"example\"\ngraphicsWindowsTextLayoutGeometrySnapshot result = MeasureGraphicsWindowsTextGeometry(value, family, locale, weight, sizeQ26_6, maximumWidthQ26_6, maximumHeightQ26_6, pointXQ26_6, pointYQ26_6, candidateUtf16Position, candidateTrailing, selectionStart, selectionLength, source)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_text_windows__measuregraphicswindowstextgeometry\"\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\n[[dependencies]]\npackage = \"graphics.text.windows\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text/windows\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"de96cf7d12fdeca54f180148b76a3501f8dfdf190e06acaa2e1613dfdb843545","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=graphics.text.windows--MeasureGraphicsWindowsTextGeometry","json":"https://demonhunterlabs.com/reference/items/graphics.text.windows--MeasureGraphicsWindowsTextGeometry.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.text.windows--MeasureGraphicsWindowsTextGeometry.md"}
