improve custom fonts handling