For those that want an example.
--http://www.solarus-games.org/doc/latest/lua_api_text_surface.html
local test = sol.text_surface.create({ -- name a local variable something and assign it to the sol.text_surface
font = "minecraftia", -- font name
text = "what", -- text you want to show
font_size = 50, -- font size obviously
horizontal_alignment = "center", -- default "left"
vertical_alignment = "bottom", -- default "middle"
rendering_mode = "antialiasing", -- "solid" (faster) and default
color = {0,0,0}, -- color must be in a table RGB (http://www.rapidtables.com/web/color/RGB_Color.htm)
})
function sol.main:on_draw(screen)
test:draw(screen,100,100)
end --end of draw function