added support for custom fonts