Lua function for dynamically drawing text with a stroke and shadow