Closed Bug 190278 Opened 22 years ago Closed 21 years ago

With Xft, Mozilla only displays the last word in Hebrew sequences [missing/invisible lines of text] [text doesn't show up until highlighted]

Categories

(Core Graveyard :: GFX: Gtk, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: ilya.konstantinov+future, Assigned: blizzard)

References

Details

(Keywords: relnote, testcase)

Attachments

(12 files)

Given a basic document with a sequence of Hebrew words, only the last one gets drawn, e.g.: [HEBREW] [HEBREW] [HEBREW] [ENGLISH] [ENGLISH] [ENGLISH] gets drawn as (logically; ignoring BiDi since its irrelevant here): [blank.] [blank.] [HEBREW] [ENGLISH] [ENGLISH] [ENGLISH] (where [HEBREW] denotes a Hebrew word, [ENGLISH] denotes an English word and [blank.] denotes a blank space whose width is the width of the original word which was supposed to be drawn there)
Attached file Testcase
Attached image Screenshot
This screenshot shows the rendering of the testcase on my machine.
Attached image Screenshot
Strangely, if you keep one of the hidden words selected, it reveals it, and the other hidden word as well.
On my system your test case displays properly, which probably means it's related to the particular font on your system.
Blocks: xft_tracking
Status: NEW → ASSIGNED
You're right. If I specify the entire text to be presented in a font which has Hebrew glyphs, such as Arial, Courier New or Times New Roman, the Hebrew text displays properly. However, if I specify it to be presented in a font without Hebrew glyphs (either explicitly via font-family or implicitly by having it as my default font in the Preferences), it fallbacks to a Hebrew-supporting font (in a totally unexpected fashion, btw; it prefers Times New Roman for 'Courier' and Courier New for 'Times') only on the last word of the sequence (as you see in my screenshots).
I have the same problem, using mozilla-snapshot in debian sid. This was true of the Jan 30 build and the Mar 03 build. (I had been waiting impatiently for a moz update, and when it came and had the same bug, I was very disappointed, so I am finally taking some action. :-) I talked to keithp, and he initially suggested it might be an Xft problem, but I tried a couple things that led us to believe it was not. Three screenshots to follow, showing how strangely it behaves when I select different parts of the text.
Might have something that's related. Pure English text, though. I'm getting other weird Xft problems, but this is the most pronounced. Like this bug, I see the additional text if I highlight it.
Attached image correct rendering
This was made on a non-Xft build. Same font (used through XFree86 truetype support). Moz 1.3.0.
Attached image incorrect rendering
This is what it looks like on an Xft build. http://www.mozilla.org/projects/xbl/test2/test.html
Attached file small testcase
This is a small testcase that shows the problem. Make sure that it's encoded with UTF-8. For some reason if I download this from a web server it's always encoded with ISO-8859-1. You have to force the encoding from the View menu.
This patch (actually latest Xft from cvs) fixes the bug for me. Thank you blizzard and keithp!
*** Bug 182650 has been marked as a duplicate of this bug. ***
Summary: With Xft, Mozilla only displays the last word in Hebrew sequences → With Xft, Mozilla only displays the last word in Hebrew sequences [missing lines of text]
*** Bug 204390 has been marked as a duplicate of this bug. ***
*** Bug 198675 has been marked as a duplicate of this bug. ***
*** Bug 204502 has been marked as a duplicate of this bug. ***
*** Bug 205706 has been marked as a duplicate of this bug. ***
*** Bug 207018 has been marked as a duplicate of this bug. ***
Could we update the summary to reflect the actual nature of the bug instead of one of the many symptoms? The huge number of dupes is because this summary doesn't seem to apply in most cases-- not all of us use Hebrew. What about: "Xft does not show certain UTF-8 glyphs until highlighted"
Summary: With Xft, Mozilla only displays the last word in Hebrew sequences [missing lines of text] → With Xft, Mozilla only displays the last word in Hebrew sequences [missing lines of text] [text doesn't show up until highlighted]
*** Bug 209150 has been marked as a duplicate of this bug. ***
*** Bug 209432 has been marked as a duplicate of this bug. ***
This doesn't seem to be just a UTF-8 bug. This seems to happen if you have a "paragraph" (not sure if this is a <P> set or not) that starts with several capital letters. See usatoday.com under news briefs and under that on nation (either one does the trick). You will see this same bug completely in action. The first line is invisible.
*** Bug 204861 has been marked as a duplicate of this bug. ***
The problem was not fixed when I applied Blizzard's patch 121540 to libxft2 2.1.1 under XFree86 4.2 (the latest package versions in Debian unstable.) However, updating to the CVS version of libxft2 (which already includes the patch) and XFree86 4.3 (which is required to build CVS libxft2) fixed the problem.
*** Bug 213797 has been marked as a duplicate of this bug. ***
Adjusting a summary a little bit to avoid dupes.
Summary: With Xft, Mozilla only displays the last word in Hebrew sequences [missing lines of text] [text doesn't show up until highlighted] → With Xft, Mozilla only displays the last word in Hebrew sequences [missing/invisible lines of text] [text doesn't show up until highlighted]
*** Bug 208720 has been marked as a duplicate of this bug. ***
*** Bug 200486 has been marked as a duplicate of this bug. ***
This bug was fixed by blizzard's Xft patch, wasn't it? If it was, we have to release-note it. Could someone come up with a brief summary of the problem? Have RedHat, SuSe and other Linux distribution vendors released a new Xft with this patch?
Keywords: relnote
RedHat (which I use) ships the libxft only as part of XFree86-libs package so I'll have to download Rawhide sources, see if the patch is there and if it's there recompile it to test if the patch works. It will take some time. As it's a pretty nasty bug couldn't it be workarounded by mozilla somehow?
OK. The XFree86-4.3.0-22.1 from Rawhide (contains a xft2-2.1.2 with the patch) fixes the bug for me.
*** Bug 220072 has been marked as a duplicate of this bug. ***
Attachment #121536 - Attachment mime type: text/html → text/html; charset=UTF-8
*** Bug 224038 has been marked as a duplicate of this bug. ***
*** Bug 224679 has been marked as a duplicate of this bug. ***
*** Bug 225623 has been marked as a duplicate of this bug. ***
*** Bug 205062 has been marked as a duplicate of this bug. ***
XFree86 4.3.0-0pre1v3 (debian package) + patched libXft2 doesn't make any difference on mozilla-xft 1.5-3 (debian package). Many Korean texts are still missing in the rendered page. Turning off "Allow documents to use other fonts" options remedies the problem to some extent but not completely. If I missed something, please point out. I used source checked out from xfree86 repository as of 23th November and applied Blizzard's patch. TIA.
Xft is not maintained at XFree86. For the CVS version of Xft, you'd better go to http://freedesktop.org(go to http://freedesktop.org/Software/xlibs) Anyway, I'm not sure what your problem is and whether that's the same as this bug. Can you give a test case (or at least addresses of sites you have the trouble with)?
The problem I've had closely matches description of this bug. In MOST pages, Korean characters are not rendered properly, selecting or hovering over hiddent texts tend to reveal them. Less frequently, there are pages with disappearing western characters. The last such page I've seen was a longhorn preview page I've followed from the Inquirer. If the URL makes any difference, please tell me. I'll try to find the page again. Turning on anti-aliasing or turning off "allow documents to use other fonts" remedies the problem. I've been seeing this this problem on all mozilla-based browsers w/ xft released during the last six months. I'm attaching screenshots. (The screenshots are taken with mozilla-xft 1.5-3 and the CVS snapshots of fontconfig/Xrender/Xft from freedesktop.org as of 25th November.)
Thanks for the screenshot. I'm wondering how come I've never seen that (I google every 5 minutes). Anyway, what fonts do you have specified for Korean and other langGroups? You wrote that honoring the font specified in documents made a difference so that your fonts must have something to do with this.
I'm currently using "new gulim" taken from Windows XP (ngulim.ttf) for both Serif and Sans-serif for Korean (12point, 12point min). I didn't modify any other configuration. Using baekmook ttf fonts doesn't make any difference. IIRC, I once also removed all windows fonts and installed only baekmook fonts. That didn't make any different either. Oh.. one thing I've noticed is that rendering failures usually occur after abnormally wide white space characters. This can also be seen in the screenshots I've posted. Would posting fontdir file (ttf-commercial.scale) help?
Thanks a lot for giving me details. Unfortunately, I have no clue what's going on. For the last several months, I've almost exclusively used Un-series true/opentype fonts (http://chem.skku.ac.kr/~wkpark ) for Korean text (although I occasionally tested Baekmuk and Windows fonts). That's one difference, but it doessn't sound like Un-series fonts are any different from others as far as the symptom you described is concerned. (well, you may want to install them anyway because they look much better than Baekmuk and look pretty good at smaller sizes without embedded bitmaps ). BTW, fonts.scale has nothing to do with Xft. Anoter, btw, could graphic adaptor and/or X server make a difference? Not likely, but there may be something.....
I have two almost identically configured debian sid boxes. One is P3 / radeon VE. The other is P4 / radeon VE. I was using the latest 4.2 server until a week ago and switched to 4.3.0-pre1v3 (deb http://www.schuldei.org/debian/bruby/ ./). The switch didn't make any difference. :-( So, is the symptom I'm seeing different from this bug? Should I open a new bug? Am I the only one seeing this problem? I'm willing to supply as much information as needed to resolve this one. Just tell me what's needed.
What you've been experiencing appears to match the dsecription given by others, but after blizzard's patch was applied, it seems to have disappeared for others. However, you still have a problem. Just in case(although not likely to change anything), can you try XF86 4.3.99 (or whatever it's gonna be 4.4. 4.3.0pre1? is rather old). As an added benefit, a nasty bug was fixed late in 4.3.9x cycle. The bug triggerd Mozilla's crash whenever you visit a site with (a) flash animation(s) with an IM server turned on.
No activity from latest bug reporter since 2003-11-24. This is fixed in Debian testing's libxft2 2.1.2-5 package. Recommend resolving MOVED or RESOLVED, since (AFAICT) this patch has been picked up upstream.
Can anyone reproduce this bug with recent builds? Prog.
Wow, is this still open? It's really an upstream bug, marking WORKSFORME since upstream fixes will make it better.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
*** Bug 244437 has been marked as a duplicate of this bug. ***
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: