From 21e6694c2244a8e7c102bd841e41a3e627e0e885 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 10 Jun 2025 11:34:03 +0100 Subject: minor additions --- print_good.lua | 1 + qw.lua | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/print_good.lua b/print_good.lua index b5d18b9..60948bb 100644 --- a/print_good.lua +++ b/print_good.lua @@ -2,6 +2,7 @@ local font = love.graphics.getFont() local text = love.graphics.newText(font) local function print_good(str,x,y) + text:setFont(love.graphics.getFont()) text:set(str) local w,h = text:getDimensions() local W,H = love.graphics.getDimensions() diff --git a/qw.lua b/qw.lua index 3b27816..b91f9b0 100644 --- a/qw.lua +++ b/qw.lua @@ -14,4 +14,5 @@ local function qws(str) end return out end -return setmetatable({qw=qw,s=qws},{__call=function(_,...) return qw(...) end}) +local function qwi(str) return pairs(qws(str)) end +return setmetatable({qw=qw,s=qws,i=qwi},{__call=function(_,...) return qw(...) end}) -- cgit v1.2.3