an exception is raised if source_text.font has a wrong parameter