Quote:
Originally Posted by kovidgoyal
Change the font, this is a bug in Qt with certain fonts.
|
I've got to say, I find this bug to be rather annoying. If you want to add to their bug report, it seems that in Windows 8 using Times New Roman, capitalized letters are a source of this issue. All lowercase letters are within the bounds of the container, but by replacing lowercase characters with uppercase ones, the right-edge of the text (in ltr mode, at least) moves further and further to the right, as uppercase characters are wider than lowercase ones, instead of wrapping around properly.
An example:
Code:
<html>
<body style="width:956px;background-color:black;color:#949494">
<div style="padding:75px;">
<p style="text-align:justify; background-color:darkgreen">
<span style="text-transform:uppercase;background-color:darkblue">
Rath considered himself</span> a businessman.
Besides being something of an expert in the finer arts of item relocation, he also considered himself a
</p>
</div>
</body>
</html>
Renders like this:
(Click to enlarge)