{"id":"runtime--Canvas.DrawTextScaled","name":"Canvas.DrawTextScaled","owner":"yeho","package":"runtime.Canvas","kind":"builtin","signature":"Canvas.DrawTextScaled(text text, int x, int y, int scalePercent, int red, int green, int blue) -> void","description":"Draw text scaled through the Canvas runtime.","context":"Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.","parameters":[{"name":"text","type":"text","description":"Supply text as text.","rule":"Text"},{"name":"x","type":"int","description":"Supply x as int.","rule":"AnyInteger"},{"name":"y","type":"int","description":"Supply y as int.","rule":"AnyInteger"},{"name":"scalePercent","type":"int","description":"Supply scale percent as int.","rule":"AnyInteger"},{"name":"red","type":"int","description":"Supply red as int.","rule":"AnyInteger"},{"name":"green","type":"int","description":"Supply green as int.","rule":"AnyInteger"},{"name":"blue","type":"int","description":"Supply blue as int.","rule":"AnyInteger"}],"returns":"void","members":[],"tags":["builtin","canvas","cpu","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":1567,"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 Canvas.DrawTextScaled","description":"A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.","code":"text text = \"text\"\nint x = 1\nint y = 1\nint scalePercent = 1\nint red = 1\nint green = 1\nint blue = 1\nCanvas.DrawTextScaled(text, x, y, scalePercent, red, green, blue)\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__canvas_drawtextscaled\"\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":"cd0f5f6a9bf7ab3bdd708430ad5ad5f827384679b7d545f3b2662d7ffdd11c6d","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--Canvas.DrawTextScaled","json":"https://demonhunterlabs.com/reference/items/runtime--Canvas.DrawTextScaled.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--Canvas.DrawTextScaled.md"}
