Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 374914

Summary: Text cut-off under some constellations
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: nmussin
Version: unspecified   
Target Milestone: 1.5 M7   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Text width in Firefox - 160px
none
Text width in Chrome - 162px none

Description Ivan Furnadjiev CLA 2012-03-21 10:36:09 EDT
Steps to reproduce:
1. Start the server.
2. Open Examples Demo in FF.
3. Go to "TableViewer" page.
4. Close FF.
5. Open Examples Demo in Chrome.
3. Go to "TableViewer" page.
The last "r" of the "TableViewer" label is cut-off. Same with "Table with Markup" - "p" is cut-off too.
Comment 1 Ivan Furnadjiev CLA 2012-03-21 10:37:23 EDT
Created attachment 213002 [details]
Text width in Firefox - 160px
Comment 2 Ivan Furnadjiev CLA 2012-03-21 10:38:00 EDT
Created attachment 213003 [details]
Text width in Chrome - 162px
Comment 3 Ivan Furnadjiev CLA 2012-03-21 10:43:45 EDT
Firefox has that feature that reduces the spacing between two chars if its still not overlapping. As a result the text size measurement is 2px smaller if the measurement is done in Firefox. As a result the text in Chrome is cut-off. In this particular case Firefox reduces the spacing between first letter "T" and next "a". In Chrome we still have 2px spacing.
Comment 4 Ivan Furnadjiev CLA 2012-03-22 05:27:54 EDT
Fixed by changing the Probe#DEFAULT_PROBE_STRING to have a sequence like "AzBy...YbZa". With this sequence, font probing produces different results in Firefox and Chrome and strings are measured again in case of a difference.
Comment 5 Nick Mussin CLA 2012-05-08 08:10:27 EDT
*** Bug 377936 has been marked as a duplicate of this bug. ***