View Single Post
Old 01-17-2013, 04:06 PM   #5
Clubbavich
Junior Member
Clubbavich began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2012
Device: Nokia Lumia 900
Quote:
Originally Posted by kovidgoyal View Post
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 image for larger version

Name:	CapitalLetterBleedover.PNG
Views:	184
Size:	7.9 KB
ID:	99576
(Click to enlarge)

Last edited by WT Sharpe; 01-22-2013 at 01:53 PM.
Clubbavich is offline   Reply With Quote