Support #4855
opendrawText issue
0%
Description
Hello,
My name is Gabriel Ianculescu and i tty to use drawText method.
I have this piece of code:
WPainter painter(paintDevice);
....
WFont mono;
mono.setFamily(WFont::Monospace, "'Courier New'");
mono.setSize(0.2);
painter.setFont(mono);
painter.drawText(2, 1, 1, 0.22, Wt::AlignMiddle | Wt::AlignCenter, Wt::TextSingleLine, "ABC");
It works fine on IE but on firefox and Chrome the letters appear ovelaid.
Can someone tell me how I can solve this problem ?
Thanks,
Gabriel
Files
Updated by Koen Deforche almost 8 years ago
- Status changed from New to Feedback
- Assignee set to Koen Deforche
Could you provide screenshots?
Updated by gabriel ianculescu almost 8 years ago
- File Chrome_49.0.2623.png Chrome_49.0.2623.png added
- File IE.png IE.png added
Thanks for the quick feedback.
I attached a screen-shoot from IE and from Chrome for the same graphic
Gabriel
Updated by Koen Deforche almost 8 years ago
- Status changed from Feedback to InProgress
- Target version set to 3.3.6
Updated by Koen Deforche almost 8 years ago
- Assignee changed from Koen Deforche to Yoika Ghysens
Updated by Yoika Ghysens almost 8 years ago
- File Chrome.png Chrome.png added
- File Firefox.png Firefox.png added
- File painter.C painter.C added
We tried reproducing your error but in our test case the letters do not overlap in Chrome or firefox. We did however notice that there is an inconsistency between browsers when displaying the letters (as you can see in the attachments). This could be due to the fact that the browsers handle the zoom differently, perhaps you can try to set your font size larger, eliminating the need for zooming in as this appears to be more consistent across browsers.
Updated by Koen Deforche almost 8 years ago
- Status changed from InProgress to Feedback
- Target version deleted (
3.3.6)