Text can be 'italics' even if it has 0 slant (for instance, TrueType font). So this method sets 'italics' flag in case of true; and resets 'italics' flag and 'slant' in case of false.