{"id":"runtime--WindowsText.Measure","name":"WindowsText.Measure","owner":"yeho","package":"runtime.WindowsText","kind":"builtin","signature":"WindowsText.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 hit_test_UTF_16_position) -> int","description":"Measure through the WindowsText 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":"hit_test_UTF_16_position","type":"int","description":"Supply hit test utf 16 position as int.","rule":"Int"}],"returns":"int","members":[],"tags":["builtin","cpu","windowstext","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":1223,"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 WindowsText.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 hit_test_UTF_16_position = 1\nint result = WindowsText.Measure(value, font_family, font_weight, font_size_Q26_6, locale, maximum_width_Q26_6, maximum_height_Q26_6, hit_test_UTF_16_position)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__windowstext_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":"3bc43d36ee6e36e135389de592d045106c87419c1e68f66f1591f1261e6cd3b2","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--WindowsText.Measure","json":"https://demonhunterlabs.com/reference/items/runtime--WindowsText.Measure.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--WindowsText.Measure.md"}
