Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
5.4.1
-
None
-
Windows 7 32 bit
Description
When trying to display Arabic text in a label without a default width, the text sometimes gets clipped or cut off.
This seems to happen when the text contains certain Arabic characters, most notably ت (tāʾ) and a couple of characters that have "descenders" (hang below the line), especially when they are on the end (left side) of the text. (Sorry, I cannot read or write Arabic, so I can't name all the characters off the top of my head).
Getting the Qt's FontMetrics::width() value of the text returns a value smaller than the actual displayed width of the text, so it seems that Qt is incorrectly recognizing the width of certain Arabic characters and thus setting the default width of their labels to be too small, resulting in clipped text.
Font: Calling defaultFamily() and family() on my QFont object both return "MS Shell Dlg 2"