Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.7.0
-
None
-
Windows 7
Description
Not sure if this is supported or not, but setting fixed pitch to true on a proportional font doesn't seem to work. For example, the following code doesn't seem to yeild the same bounding rectangles for strings of the same length.
QFont dejavu("DejaVu Sans"); dejavu.setKerning(false); dejavu.setFixedPitch(true); QFontMetrics fm(dejaVu); QRect r1 = fm.boundingRect("Test "); QRect r2 = fm.boundingRect("Test0");
Attachments
Issue Links
- is replaced by
-
QTBUG-13291 QFont setFixedPitch
- Closed