Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
4.4.3, 5.4.2
-
None
Description
In HTML when using CSS is not available, a valid work-around for getting a half-space is to use a superscript or subscript " " above or below a line of text respectively. The width of this space can be changed by changing the font size of this " " character.
Normaly when a superscript character is added to a line, space is added to the entire line giving the appearance of a half-space above but not affecting the spacing below the text at all. In HTML rendered by Qt though(not webkit), when a superscript is added the spacing increases both above the text and below. It is not equal on both sides, but no additional space should be added below the line of text when using superscript. The same also occurs vice-versa with subscript characters.
To see the difference, you can display the following example code in both a QLabel, and a QWebView(webkit). You would see the QWebView will display this HTML the way it should look on any modern browser.
This is a bug because there is a rendering error, prevents the use of half-spaces, and makes any line with a super/subscript look inconsistent.
Example:
<html><body>Bug<br>2135 .. 2319 = 185
bp<br>First line - space below too big<sup><font
size="5"> </font></sup><br>Second line - looking very
good<br>Third line -also looking very good<br>Fourth line - again
looking good</body></html>