Added null check on font name.