Adding font caching
Add assertf function and append newline in throwf