{"id":"graphics.text.windows--MeasureGraphicsWindowsTextLayout","name":"MeasureGraphicsWindowsTextLayout","owner":"yeho","package":"graphics.text.windows","kind":"function","signature":"external MeasureGraphicsWindowsTextLayout(text value, text family, text locale, int weight, int sizeQ26_6, int maximumWidthQ26_6, int maximumHeightQ26_6, int hitUtf16Position, text source) returns graphicsWindowsTextLayoutSnapshot","description":"Measure graphics windows text layout.","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":"hitUtf16Position","type":"int","description":"Supply hit utf16 position as int."},{"name":"source","type":"text","description":"Supply source as text."}],"returns":"graphicsWindowsTextLayoutSnapshot","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_metrics.yh","line":206,"sha256":"a8cb24218dcb2004cb1f5fca46a2c6555d77b4b07ca30968b643f8921bd5a7f8"},"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 MeasureGraphicsWindowsTextLayout","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 hitUtf16Position = 1\ntext source = \"example\"\ngraphicsWindowsTextLayoutSnapshot result = MeasureGraphicsWindowsTextLayout(value, family, locale, weight, sizeQ26_6, maximumWidthQ26_6, maximumHeightQ26_6, hitUtf16Position, source)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_text_windows__measuregraphicswindowstextlayout\"\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":"b6ef4849e179dad6f9093e69a2fd6bc9a452b3788a542a26416226226358f9cd","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=graphics.text.windows--MeasureGraphicsWindowsTextLayout","json":"https://demonhunterlabs.com/reference/items/graphics.text.windows--MeasureGraphicsWindowsTextLayout.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.text.windows--MeasureGraphicsWindowsTextLayout.md"}
