Added logic to handle no defined font or no defined web font