Code: Select all
local op = love.graphics.print
function love.graphics.print(texty, x, y, ang, sx, sy, ...)
if NO_DOUBLE_TEXT then
return op(texty, x, y, ang, sy, sx, ...)
end
sx = sx or 1
sy = sy or 1
local font = love.graphics.getFont()
for xx = 1, #texty do
local text = texty:sub(xx,xx)
local x = x+(xx~=1 and font:getWidth(texty:sub(1,xx-1)) or 0)*sx
local r,g,b,a = love.graphics.getColor()
love.graphics.setColor(0,0,0,a)--getColor(coloyr or "green",a))
local scale = 1.1
local nsx, nsy = (sx or 1)*scale, (sy or 1)*scale
local diffX =(nsx - (sx or 1))/2
local diffY = (nsy - (sy or 1))/2
op(text, x-diffX, y-diffY, ang, nsx, nsy, ...)
love.graphics.setColor(r,g,b,a)
op(text, x, y, ang, sx, sy, ...)
end
end