Aino's function DrawText() is called, so you have to add the codes below to the end of level files(.lua).
function DrawText(startx, starty, text, r, g, b, a, h, w, boldness)
--And here is a long function, supporting drawing text!
x = startx
y = starty
for i = 1, string.len(text) do
letter = string.sub(text, i, i)
if letter == 'A' or letter == 'a' then
DrawLine(x, y,x+(w/2),y-h, r,b,g,a,r,b,g,a,boldness)
DrawLine(x+w, y,x+(w/2),y-h, r,b,g,a,r,b,g,a,boldness)
DrawLine(x+(w/4), y-(h/2),(x+w)-(w/4),y-(h/2), r,b,g,a,r,b,g,a,boldness)
elseif letter == 'B' or letter == 'b' then
DrawLine(x, y, x+w, y-(h/8), r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-h, x+w, y-h+(h/8), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-(h/8), x+w, y-(h/2)+(h/8), r,b,g,a,r,b,g,a,boldness)
DrawLine(x+w, y-h+(h/8), x+w, y-(h/2)-(h/8), r,b,g,a,r,b,g,a,boldness)
DrawLine(x, y, x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-(h/2), x+w, y-(h/2)+(h/8), r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-(h/2), x+w, y-(h/2)-(h/8), r,b,g,a, r,b,g,a,boldness)
elseif letter == 'C' or letter == 'c' then
DrawLine(x, y-(h/8), x, y-h+(h/8), r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-(h/8), x+w, y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-h+(h/8), x+w, y-h, r,b,g,a, r,b,g,a,boldness)
elseif letter == 'D' or letter == 'd' then
DrawLine(x, y, x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y, x+w-(w/4), y-(h/8), r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-h, x+w-(w/4), y-h+(h/8), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-h+(h/4), x+w, y-(h/4), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w-(w/4), y-(h/8), x+w, y-(h/4), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w-(w/4), y-h+(h/8), x+w, y-h+(h/4), r,b,g,a, r,b,g,a,boldness)
elseif letter == 'E' or letter == 'e' then
DrawLine(x, y, x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y, x+w, y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-h, x+w, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-(h/2), x+(w/2), y-(h/2), r,b,g,a, r,b,g,a,boldness)
elseif letter == 'F' or letter == 'f' then
DrawLine(x, y, x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-h, x+w, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-(h/2), x+(w/2), y-(h/2), r,b,g,a, r,b,g,a,boldness)
elseif letter == 'G' or letter == 'g' then
DrawLine(x+(w/2), y-h, x+w, y-(h/2)-(h/8), r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-(h/2), x+(w/2), y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-(h/2), x+(w/2), y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2), y, x+w, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2), y-(h/2), x+w, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2), y-(h/2), x+(w/2), y-(h/2)+(h/6), r,b,g,a, r,b,g,a,boldness)
elseif letter == 'H' or letter == 'h' then
DrawLine(x, y, x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-(h/2), x+w, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y, x+w, y-h, r,b,g,a, r,b,g,a,boldness)
elseif letter == 'I' or letter == 'i' then
DrawLine(x+(w/2), y, x+(w/2), y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2)-(w/8), y, x+(w/2)+(w/8), y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2)-(w/8), y-h, x+(w/2)+(w/8), y-h, r,b,g,a, r,b,g,a,boldness)
elseif letter == 'J' or letter == 'j' then
DrawLine(x+(w/1.5), y, x+(w/1.5), y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/1.5)-(w/2), y, x+(w/1.5), y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/1.5)-(w/2), y, x+(w/1.5)-(w/2), y-(h/8), r,b,g,a, r,b,g,a,boldness)
elseif letter == 'K' or letter == 'k' then
DrawLine(x, y, x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y, x, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-h, x, y-(h/2), r,b,g,a, r,b,g,a,boldness)
elseif letter == 'L' or letter == 'l' then
DrawLine(x, y, x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y, x+w, y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y, x+w, y-(h/16), r,b,g,a, r,b,g,a,boldness)
elseif letter == 'M' or letter == 'm' then
DrawLine(x, y, x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y, x+w, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-h, x+(w/2), y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-h, x+(w/2), y-(h/2), r,b,g,a, r,b,g,a,boldness)
elseif letter == 'N' or letter == 'n' then
DrawLine(x, y, x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y, x+w, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-h, x+w, y, r,b,g,a, r,b,g,a,boldness)
elseif letter == 'O' or letter == 'o' then
DrawLine(x+(w/2), y-h, x+w, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2), y-h, x, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2), y, x+w, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2), y, x, y-(h/2), r,b,g,a, r,b,g,a,boldness)
elseif letter == 'P' or letter == 'p' then
DrawLine(x, y, x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-h, x+w, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-h, x+w, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-(h/2), x+w, y-(h/2), r,b,g,a, r,b,g,a,boldness)
elseif letter == 'Q' or letter == 'q' then
DrawLine(x+(w/2), y-h, x+w, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2), y-h, x, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2), y, x+w, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2), y, x, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2)+(w/4), y-(h/4), x+w, y, r,b,g,a, r,b,g,a,boldness)
elseif letter == 'R' or letter == 'r' then
DrawLine(x, y, x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-h, x+w, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-(h/2), x+w, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-h, x+w, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-(h/2), x+w, y, r,b,g,a, r,b,g,a,boldness)
elseif letter == 'S' or letter == 's' then
DrawLine(x, y-(h/4), x+(w/2), y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-(h/4), x+(w/2), y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-h+(h/4), x+(w/2), y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-h+(h/4), x+(w/2), y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-(h/4), x, y-h+(h/4), r,b,g,a, r,b,g,a,boldness)
elseif letter == 'T' or letter == 't' then
DrawLine(x+(w/2), y, x+(w/2), y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-h, x+w, y-h, r,b,g,a, r,b,g,a,boldness)
elseif letter == 'U' or letter == 'u' then
DrawLine(x, y-(h/4), x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-(h/4), x+w, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-(h/4), x+(w/2), y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-(h/4), x+(w/2), y, r,b,g,a, r,b,g,a,boldness)
elseif letter == 'V' or letter == 'v' then
DrawLine(x, y-h, x+(w/2), y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-h, x+(w/2), y, r,b,g,a, r,b,g,a,boldness)
elseif letter == 'W' or letter == 'w' then
DrawLine(x, y, x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y, x+w, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y, x+(w/2), y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y, x+(w/2), y-(h/2), r,b,g,a, r,b,g,a,boldness)
elseif letter == 'X' or letter == 'x' then
DrawLine(x, y, x+w, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y, x, y-h, r,b,g,a, r,b,g,a,boldness)
elseif letter == 'Y' or letter == 'y' then
DrawLine(x, y-h, x+(w/2), y-(h/1.5), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-h, x+(w/2), y-(h/1.5), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2), y, x+(w/2), y-(h/1.5), r,b,g,a, r,b,g,a,boldness)
elseif letter == 'Z' or letter == 'z' then
DrawLine(x, y-h, x+w, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y, x+w, y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y, x+w, y-h, r,b,g,a, r,b,g,a,boldness)
elseif letter == '1' then
DrawLine(x+(w/2), y, x+(w/2), y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2)-(w/8), y, x+(w/2)+(w/8), y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2), y-h, x+(w/2)-(w/4), y-h+(h/4), r,b,g,a, r,b,g,a,boldness)
elseif letter == '2' then
DrawLine(x, y-h+(h/4), x+(w/2), y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-h+(h/4), x+(w/2), y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y, x+w, y-h+(h/4), r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y, x+w, y, r,b,g,a, r,b,g,a,boldness)
elseif letter == '3' then
DrawLine(x+(w/1.5), y, x+w, y-(h/4), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/1.5), y-(h/2), x+w, y-(h/4), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/1.5), y-(h/2), x+w, y-h+(h/4), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/1.5), y-h, x+w, y-h+(h/4), r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y, x+(w/1.5), y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-h, x+(w/1.5), y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/1.5), y-(h/2), x+(w/2.5), y-(h/2), r,b,g,a, r,b,g,a,boldness)
elseif letter == '4' then
DrawLine(x+w, y, x+w, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-(h/2), x, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-(h/2), x, y-h, r,b,g,a, r,b,g,a,boldness)
elseif letter == '5' then
DrawLine(x, y-(h/2), x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-h, x+w, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-(h/2), x+(w/2), y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2), y-(h/2), x+w, y-(h/4), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-(h/4), x+(w/2), y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y, x+(w/2), y, r,b,g,a, r,b,g,a,boldness)
elseif letter == '6' then
DrawLine(x+w, y-h, x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-h, x, y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y, x+w, y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y, x+w, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-(h/2), x, y-(h/2), r,b,g,a, r,b,g,a,boldness)
elseif letter == '7' then
DrawLine(x, y-h, x+w, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-h, x, y, r,b,g,a, r,b,g,a,boldness)
elseif letter == '8' then
DrawLine(x+w, y-h, x+w, y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y-h, x, y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-h, x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-(h/2), x, y-(h/2), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y, x, y, r,b,g,a, r,b,g,a,boldness)
elseif letter == '9' then
DrawLine(x+(w/2), y-h, x+w, y-h+(h/4), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2), y-h, x, y-h+(h/4), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2), y-(h/2), x+w, y-h+(h/4), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2), y-(h/2), x, y-h+(h/4), r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-h+(h/4), x+w, y, r,b,g,a, r,b,g,a,boldness)
elseif letter == '0' then
DrawLine(x+w, y, x, y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-h, x, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y, x+w, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x, y, x, y-h, r,b,g,a, r,b,g,a,boldness)
elseif letter == '+' then
DrawLine(x+(w/2), y, x+(w/2), y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-(h/2), x, y-(h/2), r,b,g,a, r,b,g,a,boldness)
elseif letter == '-' then
DrawLine(x+w, y-(h/2), x, y-(h/2), r,b,g,a, r,b,g,a,boldness)
elseif letter == '^' then
DrawLine(x+w, y-h, x+(w/2), y, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+(w/2), y, x, y-(h/2), r,b,g,a, r,b,g,a,boldness)
elseif letter == '/' then
DrawLine(x+w, y-h, x, y, r,b,g,a, r,b,g,a,boldness)
elseif letter == ":" then
DrawSprite(1,x+(w/2),y,r,g,b,a,boldness*3)
DrawSprite(1,x+(w/2),y-h,r,g,b,a,boldness*3)
elseif letter == "." then
DrawSprite(1,x,y,r,g,b,a,boldness*3)
elseif letter == "?" then
DrawSprite(1,x+w/2,y-h/8,r,g,b,a,boldness*3)
DrawLine(x+w/2, y-h/6, x+w/2, y-h/2, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w/2, y-h/2, x+w, y-h/2-h/4, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w, y-h/2-h/4, x+w/2, y-h, r,b,g,a, r,b,g,a,boldness)
DrawLine(x+w/2, y-h, x, y-h/2-h/4, r,b,g,a, r,b,g,a,boldness)
end
x = x + w + 5
end
end