Adding support for different font types.