Position Adjustment in Italic/oblique/slanted Styles
Another subtle adjustment that is most often forgotten in renderers, is controlling the direction of movement for superscripts and subscripts, when they don't lie on the baseline. It should notably take into account the current font's style for italics, notably its slanting direction; most renderers only adjust the position vertically, and forget to shift it horizontally as well. This creates collision with surrounding letters in the same italic size. One can see an example of such collision on the right side when rendered in HTML. To avoid such problem, it is often necessary to insert a small positive horizontal margin (or a thin space) (on the left side of the first the superscript character), or a negative margin (or a tiny backspace) before the subscript. It is more critical with glyphs from fonts in "Oblique" styles that are more slanted than those from fonts in Italic style, and some fonts reverse the direction of slanting, so there's no general solution except when the renderer takes into account the font metrics properties that provides the angle of slanting,
But more generally, the same problem occurs as well between spans of normal glyphs (non-subperscript and non-subscripts) when slanting styles are mixed.
Read more about this topic: Subscript And Superscript
Famous quotes containing the words position, adjustment, oblique, slanted and/or styles:
“It is in vain that we would circumscribe the power of one half of our race, and that half by far the most important and influential. If they exert it not for good, they will for evil; if they advance not knowledge, they will perpetuate ignorance. Let women stand where they may in the scale of improvement, their position decides that of the race.”
—Frances Wright (17951852)
“The terror of the atom age is not the violence of the new power but the speed of mans adjustment to itthe speed of his acceptance.”
—E.B. (Elwyn Brooks)
“Besides, our action on each other, good as well as evil, is so incidental and at random, that we can seldom hear the acknowledgments of any person who would thank us for a benefit, without some shame and humiliation. We can rarely strike a direct stroke, but must be content with an oblique one; we seldom have the satisfaction of yielding a direct benefit, which is directly received.”
—Ralph Waldo Emerson (18031882)
“They all came, some wore sentiments
Emblazoned on T-shirts, proclaiming the lateness
Of the hour, and indeed the sun slanted its rays
Through branches of Norfolk Island pine as though
Politely clearing its throat....”
—John Ashbery (b. 1927)
“The gothic is singular in this; one seems easily at home in the renaissance; one is not too strange in the Byzantine; as for the Roman, it is ourselves; and we could walk blindfolded through every chink and cranny of the Greek mind; all these styles seem modern when we come close to them; but the gothic gets away.”
—Henry Brooks Adams (18381918)