{"id":"runtime--WindowsTextGeometry.Measure","name":"WindowsTextGeometry.Measure","owner":"yeho","package":"runtime.WindowsTextGeometry","kind":"builtin","signature":"WindowsTextGeometry.Measure(text value, text font_family, int font_weight, int font_size_Q26_6, text locale, int maximum_width_Q26_6, int maximum_height_Q26_6, int point_x_Q26_6, int point_y_Q26_6, int candidate_UTF_16_position, bool candidate_trailing_side, int selection_UTF_16_start, int selection_UTF_16_length) -> int","description":"Measure through the WindowsTextGeometry runtime.","context":"Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.","parameters":[{"name":"value","type":"text","description":"Supply value as text.","rule":"Text"},{"name":"font_family","type":"text","description":"Supply font family as text.","rule":"Text"},{"name":"font_weight","type":"int","description":"Supply font weight as int.","rule":"Int"},{"name":"font_size_Q26_6","type":"int","description":"Supply font size q26 6 as int.","rule":"Int"},{"name":"locale","type":"text","description":"Supply locale as text.","rule":"Text"},{"name":"maximum_width_Q26_6","type":"int","description":"Supply maximum width q26 6 as int.","rule":"Int"},{"name":"maximum_height_Q26_6","type":"int","description":"Supply maximum height q26 6 as int.","rule":"Int"},{"name":"point_x_Q26_6","type":"int","description":"Supply point x q26 6 as int.","rule":"Int"},{"name":"point_y_Q26_6","type":"int","description":"Supply point y q26 6 as int.","rule":"Int"},{"name":"candidate_UTF_16_position","type":"int","description":"Supply candidate utf 16 position as int.","rule":"Int"},{"name":"candidate_trailing_side","type":"bool","description":"Supply candidate trailing side as bool.","rule":"Bool"},{"name":"selection_UTF_16_start","type":"int","description":"Supply selection utf 16 start as int.","rule":"Int"},{"name":"selection_UTF_16_length","type":"int","description":"Supply selection utf 16 length as int.","rule":"Int"}],"returns":"int","members":[],"tags":["builtin","cpu","windowstextgeometry","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":1239,"sha256":"14d29529d2d3c0e2b587f83c7f125b99ada142ed7ae28612701ea6cb9174ac65"},"status":"registered-intrinsic","notes":["The example checks the call shape. Opening windows, recording audio, changing files, network operations, and process operations have real effects when run. Follow the corresponding package lifecycle before using live resources."],"examples":[{"id":"usage","title":"Call WindowsTextGeometry.Measure","description":"A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.","code":"text value = \"value\"\ntext font_family = \"font family\"\nint font_weight = 1\nint font_size_Q26_6 = 1\ntext locale = \"locale\"\nint maximum_width_Q26_6 = 1\nint maximum_height_Q26_6 = 1\nint point_x_Q26_6 = 1\nint point_y_Q26_6 = 1\nint candidate_UTF_16_position = 1\nbool candidate_trailing_side = true\nint selection_UTF_16_start = 1\nint selection_UTF_16_length = 1\nint result = WindowsTextGeometry.Measure(value, font_family, font_weight, font_size_Q26_6, locale, maximum_width_Q26_6, maximum_height_Q26_6, point_x_Q26_6, point_y_Q26_6, candidate_UTF_16_position, candidate_trailing_side, selection_UTF_16_start, selection_UTF_16_length)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__windowstextgeometry_measure\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu","builtin"],"run":"cpu-oracle","verification":"type checked","sha256":"da338b4110318f4d648c40225f356ec5ee61780e5af9b55b5a7ce32ac3b498f6","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--WindowsTextGeometry.Measure","json":"https://demonhunterlabs.com/reference/items/runtime--WindowsTextGeometry.Measure.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--WindowsTextGeometry.Measure.md"}
