Added essential check for text and font