Allowing to pass font as file-like objects