From bd783d319557b41b5865d51f306a74abbf7af18c Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 21 Jun 2023 00:59:41 +1000 Subject: make the chat really pretty!! also slightly optimized text shadow rendering, made sure glyphs with directives stay centered and added two extra Lua arguments to canvas.drawText --- doc/lua/widget.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/lua/widget.md') diff --git a/doc/lua/widget.md b/doc/lua/widget.md index 1b29678..246a063 100644 --- a/doc/lua/widget.md +++ b/doc/lua/widget.md @@ -377,7 +377,7 @@ Draws a polygon on the canvas. Draws a list of filled triangles to the canvas. -##### `void` drawText(`String` text, `Json` textPositioning, `unsigned` fontSize, [`Color` color]) +##### `void` drawText(`String` text, `Json` textPositioning, `unsigned` fontSize, [`Color` color], [`float` lineSpacing], [`String` directives]) Draws text on the canvas. textPositioning is in the format: -- cgit v1.2.3