Allowing to pass font as file-like objects

This is the update to allow to pass fonts as file-like objects. Thank you wiredfool and aclark4life.