Project

General

Profile

Actions

Support #4855

open

drawText issue

Added by gabriel ianculescu almost 8 years ago. Updated almost 8 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
-
Start date:
04/13/2016
Due date:
% Done:

0%

Estimated time:

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

Chrome_49.0.2623.png (4.56 KB) Chrome_49.0.2623.png gabriel ianculescu, 04/15/2016 10:19 AM
IE.png (7.48 KB) IE.png gabriel ianculescu, 04/15/2016 10:19 AM
Chrome.png (1.71 KB) Chrome.png Yoika Ghysens, 04/18/2016 11:52 AM
Firefox.png (1.71 KB) Firefox.png Yoika Ghysens, 04/18/2016 11:52 AM
painter.C (1.26 KB) painter.C Yoika Ghysens, 04/18/2016 11:52 AM
Actions #1

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

Thanks for the quick feedback.

I attached a screen-shoot from IE and from Chrome for the same graphic

Gabriel

Actions #3

Updated by Koen Deforche almost 8 years ago

  • Status changed from Feedback to InProgress
  • Target version set to 3.3.6
Actions #4

Updated by Koen Deforche almost 8 years ago

  • Assignee changed from Koen Deforche to Yoika Ghysens

Updated by Yoika Ghysens almost 8 years ago

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.

Actions #6

Updated by Koen Deforche almost 8 years ago

  • Status changed from InProgress to Feedback
  • Target version deleted (3.3.6)
Actions

Also available in: Atom PDF