Closed
Bug 332576
Opened 19 years ago
Closed 17 years ago
Hebrew and Arabic text shifts to the left and white space appear after selecting bidi text when font is Verdana
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha6
People
(Reporter: nir123, Assigned: pavlov)
References
Details
(4 keywords)
Attachments
(2 files, 3 obsolete files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060331 Firefox/1.6a1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060331 Firefox/1.6a1
When writing a text with at least one hebrew char and clicking the spacebar causes the text to move left.
It may be because of the font Verdana.
Reproducible: Always
Steps to Reproduce:
Watch the testcase.
Enter Hebrew char and press spacebar and press spacebar couple of times.
Actual Results:
Text is moving left.
Expected Results:
Text should not move.
You may check if the problem is the Verdana font.
Component: General → Layout: BiDi Hebrew & Arabic
Product: Firefox → Core
Updated•19 years ago
|
QA Contact: general → layout.bidi
This bug is regressed bug.
In Firefox 1.5.0.1 this bug does not occur.
Keywords: regression
Updated•19 years ago
|
Attachment #217031 -
Attachment mime type: text/html → text/html; charset=windows-1255
Comment 4•19 years ago
|
||
Using: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060417 Firefox/3.0a1
If I load attachment 217031 [details], I see hebrew text slightly to the right of the center of the textarea. If I the put the caret at the left end of the textarea, and press backspace to delete the spaces, the text begins to move towards the right as I delete the spaces.
Comment 5•19 years ago
|
||
Confirming based on comment #4, which basically describes the problem in the reverse order (compared to comment #0):
Adding spaces causes the text to shift to the left, deleting them causes it to shift (back) to the right.
Status: UNCONFIRMED → NEW
Ever confirmed: true
I found another problem that may be relate to this bug, steps to reproduce:
1. go to "Testcase for non-Hebrew speakers".
2. put the caret before or in the elsewhere in the word 'ωμεν'.
3. type one or two hebrew letters and the word is displayed incorrectly or the word disappear.
Another way to make the word disappear:
1. go to "Testcase for non-Hebrew speakers".
2. put the caret after the letter "ω" and press "ω" again.
Comment 7•19 years ago
|
||
I'm guessing this is cairo-related (I can't reproduce on Mac).
This seems pretty bad. Nominating for blocking 1.9a1.
Flags: blocking1.9a1?
Another problem: (sorry for posting too much)
1. go to "Testcase for non-Hebrew speakers".
2. put the caret after the letter "í" (end of the word)
3. press backspace couple of times.
Result:
The caret is displayed on the text and the letters not deleted.
Expected Result:
The caret should not be on the letters and the letters should be deleted.
Updated•19 years ago
|
I found another problem when selecting text.
When using Verdana font, there are white spaces when selecting hebrew and english text.
Testcase for this problem is coming.
Reporter | ||
Comment 10•19 years ago
|
||
Reporter | ||
Comment 11•19 years ago
|
||
I reproduced on build 20060226 but I could not reproduced on build 20060222.
Does it imply this is Cairo-related?
Comment 12•19 years ago
|
||
(In reply to comment #11)
> I reproduced on build 20060226 but I could not reproduced on build 20060222.
> Does it imply this is Cairo-related?
>
Yes, almost certainly.
Reporter | ||
Comment 13•19 years ago
|
||
The tightest range I could find is:
20060222-20060224
Comment 14•19 years ago
|
||
I'm getting reports that this is making RTL textareas on Windows very hard to use, and as a result, bidi editing on trunk is getting even less testing than it usually does (which isn't enough anyway).
I wonder if this can be prioritized so that it won't block the discovery of other bugs.
Updated•19 years ago
|
Severity: normal → major
Keywords: helpwanted
Reporter | ||
Comment 15•18 years ago
|
||
Changing component to GFX: Thebes because it's cairo-related.
Reporter | ||
Comment 16•18 years ago
|
||
Attachment #217028 -
Attachment is obsolete: true
Attachment #217031 -
Attachment is obsolete: true
Attachment #219120 -
Attachment is obsolete: true
Summary: Hebrew text is moving left when clicking the spacebar. → Hebrew and Arabic text shifts to the left and white space appear after selecting bidi text when font is Verdana
Flags: blocking1.9a1? → blocking1.9+
Comment 17•18 years ago
|
||
*** Bug 359008 has been marked as a duplicate of this bug. ***
Comment 18•18 years ago
|
||
The manifestation of this bug has widened sometime between 2006-10-26 and 2006-10-31: see dupe bug 359008.
Comment 19•18 years ago
|
||
Screenshot of attachment 235374 [details] taken with sm trunk build 2006-10-31-14 on Windows XP SP2.
Comment 20•18 years ago
|
||
I understand now what is happening here, but there's no point in working on it before the new textframe lands.
When we measure the text we measure word by word, but for the width of spaces we use a fixed value taken from the current default font. When we draw, we draw the whole contents of the text frame including spaces. This means that when font substitution occurs, as it must here because Verdana contains no Hebrew, the spaces are drawn in the substituted font, not the default font, and don't necessarily have the same width that the measuring code assumed.
Depends on: 333659
Comment 21•18 years ago
|
||
With the new textframe turned on, this bug does not occur.
Updated•18 years ago
|
Target Milestone: --- → mozilla1.9alpha6
Assignee | ||
Updated•17 years ago
|
Assignee: nobody → pavlov
Assignee | ||
Comment 22•17 years ago
|
||
this was fixed by my checkin for 332649.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•