Text rendered incorrectly in presence of ligatures and justified text
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mozilla Firefox |
Won't Fix
|
Medium
|
|||
firefox (Debian) |
Fix Released
|
Unknown
|
|||
firefox (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned | ||
firefox-3.0 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
ttf-dejavu (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
For these tests, I am using fairly recent Dapper, containing the following:
firefox 1.5.dfsg+
libgtk2.0-0 2.8.16-1ubuntu1
libpango1.0-0 1.12.0-0ubuntu1
When rendering text on web pages, if a ligature is encountered (e.g. "ff", "fi", "ffi", etc) the ligature glyph gets rendered as expected but the advance of only the first character is used. This results in the characters after the ligature being drawn over the top of the ligature.
If I select text such that the selection begins or ends in the middle of the ligature, the spacing is corrected (since the ligature isn't used). This problem seems to be restricted to Firefox -- other GTK/Pango apps don't exhibit these problems.
In Mozilla Bugzilla #331716, Karl Hegbloom (karl.hegbloom) wrote : | #1 |
In Mozilla Bugzilla #331716, Karl Hegbloom (karl.hegbloom) wrote : | #2 |
Created attachment 216244
Showing the 'fl' ligature.
In Mozilla Bugzilla #331716, Bugzilla-tecnocode (bugzilla-tecnocode) wrote : | #3 |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9a1) Gecko/20060325 Firefox/1.6a1 - Build ID: 0000000000
Works for me with Dejavu Sans.
What font-size have you set it to, and does anything change if you press Ctrl+0? (That's a zero.)
James Henstridge (jamesh) wrote : Text rendered incorrectly in presence of ligatures | #4 |
For these tests, I am using fairly recent Dapper, containing the following:
firefox 1.5.dfsg+
libgtk2.0-0 2.8.16-1ubuntu1
libpango1.0-0 1.12.0-0ubuntu1
When rendering text on web pages, if a ligature is encountered (e.g. "ff", "fi", "ffi", etc) the ligature glyph gets rendered as expected but the advance of only the first character is used. This results in the characters after the ligature being drawn over the top of the ligature.
If I select text such that the selection begins or ends in the middle of the ligature, the spacing is corrected (since the ligature isn't used). This problem seems to be restricted to Firefox -- other GTK/Pango apps don't exhibit these problems.
James Henstridge (jamesh) wrote : An example of bad rendering of ligatures | #5 |
- An example of bad rendering of ligatures Edit (31.1 KiB, image/png)
The attachment shows a paragraph from http://
The page requests the "sans serif" font, which corresponds to "DejaVu Sans" on Dapper.
Chris Ball (chris-ubuntu) wrote : Screenshot showing mis-rendered 'fi'. | #6 |
- Screenshot showing mis-rendered 'fi'. Edit (215.8 KiB, image/png)
I've also been seeing this on dapper HEAD for the last week or two.
James Henstridge (jamesh) wrote : Re: Text rendered incorrectly in presence of ligatures | #7 |
Further information:
The page in question also uses the "text-align: justify" CSS rule. With normal left text alignment, I don't see the rendering problems.
James Henstridge (jamesh) wrote : | #8 |
I didn't notice the bug when searching previously, but bug 36324 is most likely same problem. I'm not sure which direction you'd like to mark them duplicates (that bug is older, but this one probably gets a bit closer to the cause).
In Mozilla Bugzilla #331716, James Henstridge (jamesh) wrote : | #9 |
I reported this in Launchpad (the Ubuntu bug tracker) here:
https:/
The conditions necessary to trigger it are:
* using Pango for font rendering (the default with the Ubuntu Dapper packages).
* using a font with ligatures (e.g. DejaVu Sans -- the default sans-serif
font for Ubuntu Dapper).
* using "text-align: justify" or equivalent markup to get justified text.
It seems that the ligature glyph is drawn, but the advance of standard glyph for the first character is used, resulting in later characters being rendered over the top of the ligature.
I am not sure if this is an Ubuntu-only bug yet. It would be interesting to hear if people not using Ubuntu are able to reproduce the bug, when the above conditions are met.
Jordi Mallach (jordi) wrote : | #10 |
I think we'll need to revert the fontconfig changes of two weeks ago, or find out if the new DejaVu fixes. Michael?
Jordi Mallach (jordi) wrote : | #11 |
A close look at DejaVu's website reveals version 2.4.1 should fix.
James Henstridge (jamesh) wrote : | #12 |
I tried the 2.4.1 release of "DejaVu Sans" with no change.
I doubt this is caused by a particular font, since:
* Left aligned text displays correctly in firefox.
* GTK Applications other than Firefox appear to have no trouble displaying ligatures.
This seems to point at Firefox's Pango rendering code.
wouter bolsterlee (wbolster) wrote : | #13 |
This seems related to http://
James Henstridge (jamesh) wrote : | #14 |
Some more information:
1. the bug occurs with the FreeSans and FreeSerif fonts too. If this is a font bug, then it is one common to all these fonts.
2. The bug is not present with MOZ_DISABLE_
3. I got Ray Strode (from Red Hat) to test if the bug occurred with the Fedora firefox builds, and it turns out that they also exhibit the bug. I also got confirmation of the bug on various other platforms in the comments here:
http://
So this doesn't look like an Ubuntu specific bug.
I did up a simple example page that demonstrates the bug here:
http://
Zak B. Elep (zakame) wrote : | #15 |
I can confirm this; I have been seeing this bug since Dapper Flight 4, but it has never interefered with my workflow since, so I haven't paid much attention to this minor annoyance.
James Henstridge (jamesh) wrote : | #16 |
I talked a bit with Christopher Blizzard about the problem on IRC (#gnome-hackers):
<halfline> jamesh: he says that when firefox does justification it goes into a "draw slow string" code path where firefox passes in it's own spacing
<halfline> and that there are some known bugs with that layouting engine with generating the spacing
<halfline> he says he can get on irc and talk to you about it...
<halfline> let me tell him to get on #gnome-hackers
--> blizzard (~blizzard@
<blizzard> hello
<jamesh> hi blizzard
<blizzard> I'm here for a few mins :)
<halfline> blizzard: url is here http://
<halfline> you'll only see the bug, though, if you have a font that supports ligatures for fi, ffi, etc
<jamesh> ^^ that page asks for DejaVu Sans specifically (a font that triggers the rendering bug)
<blizzard> jamesh: so
<blizzard> jamesh: there's per-character code in the layout engine that does per-character spacing
<blizzard> jamesh: and that tends to fall apart when you start using justification or letter spacing with any code that does character combinging
<blizzard> combining
<jamesh> I guessed something like that given the limited conditions when it gets triggered
<blizzard> yeah
<blizzard> if you stay away from those things
<blizzard> selection and friends should work pretty well
<blizzard> I fixed parts of the layout engine to support grapheme clusters a long time ago
<blizzard> but not in all case
<blizzard> cases
<jamesh> blizzard: I guess part of the problem is that our default sans serif font now contains ligatures ...
<blizzard> just the common ones
<blizzard> ugh
<jamesh> so a web page using text-align: justify and sans-serif font will trigger it
<blizzard> that is teh suck
<blizzard> sounds like it's time to try and get that bug fixed
<jamesh> if it is difficult to fix, maybe going back to Vera as default would be advisable for Dapper
<blizzard> could be, could be
<halfline> i wonder if it would be easier to just tell pango to ignore the ligatures
<blizzard> ok, food time
<blizzard> back in a bit
<jamesh> blizzard: thanks
Robin Munn (rmunn) wrote : | #17 |
I believe bug 33503 is also the same bug.
In Mozilla Bugzilla #331716, Robin Munn (rmunn) wrote : | #18 |
Based on the comments at James Henstrige's blog post, http://
Simos Xenitellis (simosx) wrote : Comparison between Firefox/Dapper and Deer Park | #19 |
- Comparison between Firefox/Dapper and Deer Park Edit (63.7 KiB, image/gif)
In Deer Park (experimental version of Firefox) there appears to be no problem with ligatures and DejaVu.
Tested on Dapper, Flight6.
In Mozilla Bugzilla #331716, Vincent+moz (vincent+moz) wrote : | #20 |
I also see this on Debian with the recent builds (which use pango). Could this bug be confirmed and the subject changed to:
'fi' and 'fl' ligatures too close to following letter in justified text when Pango is enabled
calimarno (calimarno) wrote : | #21 |
I'm having the same problem with Firefox 1.5.dfsg+
In Mozilla Bugzilla #331716, James Henstridge (jamesh) wrote : | #22 |
As Vincent says, this bug is not an Ubuntu only bug. It is just easier to hit on Ubuntu Dapper than other systems.
The prerequisites are:
1. A Firefox build with pango enabled.
2. Pango 1.12, which is the first version to use OpenType tables for
rendering latin text.
3. A font that contains OpenType ligature table entries, such as DejaVu (the
Bitstream Vera fonts contain some ligature glyphs but not the associated
OpenType tables that trigger their use by Pango).
The bug will then present itself on pages where the following hold:
1. The page requests one of the affected fonts (if an affected font is the
default serif or sans serif font, then this can be quite common).
2. The page must trigger the slow manual glyph placement code path, which
is used in the presence of non-default character or word spacing. The
"text-align: justify" CSS rule is one way to do this.
The bug has been observed with Firefox 1.5.0.1. In the Launchpad bug, one person posted a screenshot showing that Firefox 1.6a1 did not seem to be affected by the bug. I have not verified this personally though.
In Mozilla Bugzilla #331716, Bugzilla-dolphinling (bugzilla-dolphinling) wrote : | #23 |
*** Bug 331694 has been marked as a duplicate of this bug. ***
Simos Xenitellis (simosx) wrote : | #24 |
DejaVu 2.5 has just been released,
http://
which includes a workaround to fix the ligature/justified issue.
I verified that with Dapper Flight 6 (+all updates), DejaVu 2.5 can show http://
without any problem.
Stefan (stfn2) wrote : | #25 |
It seems that all the DejaVu people did is make the fi, ff etc. ligatures discretionary in version 2.5, which is not the way to go. These ligatures are, where available, mandatory for Latin-script typefaces. Discretionary is for fancy stuff like ct, st etc. ligatures.
Simos: What does James’s test page look like with the new DejaVu 2.5 fonts? Are the letter combinations in question not ligated at all (as I fear)?
Simos Xenitellis (simosx) wrote : | #26 |
Stefan: I do not have access to the Dapper box at the moment so I cannot add a screenshot.
Miguel Rodríguez (migrax) wrote : Dejavu 2.5 under dapper | #27 |
- Dejavu 2.5 under dapper Edit (84.4 KiB, image/png)
It looks like firefox under dapper is not using ligatures with dejavu 2.5.
Stefan (stfn2) wrote : | #28 |
See, that’s what I meant. But since this is a Firefox bug, not a font bug, the change in DejaVu actually deprives us of our test case. So now we need to find another font with standard fi ff etc. ligatures to test this with.
The Junicode font (package ttf-junicode) is one such font. Unfortunately, I cannot test this myself since I am running Breezy on my only computer.
Stefan (stfn2) wrote : | #29 |
Confirmed by several people in the discussion below. Severity is major because it results in illegible text with all sorts of accessibility, security etc. implications.
Changed in firefox: | |
status: | Unconfirmed → Confirmed |
Stefan (stfn2) wrote : | #30 |
I prepared two new sample pages (based on James) that use the Bitstream Vera Sans and Junicode fonts:
http://
http://
(In the case of Bitstream Vera Sans, only the fi and fl ligatures are available, so that table has only two rows.)
In Mozilla Bugzilla #331716, Roc-ocallahan (roc-ocallahan) wrote : | #32 |
I don't recommend using the existing Pango code. It's a hack started by Red Hat. It should really not be enabled by distributions except for locales where it's really needed (mostly Indic users).
In Mozilla Bugzilla #331716, James Henstridge (jamesh) wrote : | #33 |
Surely the Pango code is needed to correctly display the affected languages/scripts in any locale. That'd be why the distributions choose to use the Pango build instead.
In Mozilla Bugzilla #331716, Roc-ocallahan (roc-ocallahan) wrote : | #34 |
For languages without complex script requirements, the non-Pango code is quite adequate. This includes European languages, most East Asian languages (CJK), and Hebrew. As far as I know, only Indic languages and Arabic (including Persian/Farsi) really benefit from the Pango path.
We are now working on full Pango integration but this won't be ready for quite some time.
James Henstridge (jamesh) wrote : | #35 |
Stefan: note that the bug does not occur with Bitstream Vera Sans. It is not enough for the font to contain the ligature glyphs (which Vera does) -- it must include the appropriate OpenType tables telling the text renderer to use those ligatures in the appropriate places.
I haven't checked the Junicode font, so can't comment there.
Stefan (stfn2) wrote : | #36 |
I thought it did. Open Vera.ttf in Fontforge, go to View -> Show ATT, look at OpenType Tables -> GSUB -> latn -> dflt -> liga, and there is
fi <= f i
fl <= f l
If it doesn’t trigger the bug, then I don’t know why.
James Henstridge (jamesh) wrote : | #37 |
I was using the the otfdump utility from libotf-bin. It doesn't show any "liga" table entries for the copy of Vera.ttf on my system. It is possible that the font would contain ligature table entries if you opened and saved it with fontforge though.
Stefan (stfn2) wrote : | #38 |
Okay, I see., sorry about the confusion. Anyway, I just wanted to point out that DejaVu 2.5 no longers triggers the Firefox bug in question, but that of course doesn’t mean it has been resolved. For testing purposes one should therefore keep DejaVu 2.4 around or use any other Latin font with OpenType ligature, like for instance Junicode.
In Mozilla Bugzilla #331716, James Henstridge (jamesh) wrote : | #39 |
What I was getting at is that a distro might want to be able to display more scripts than just the user's chosen locale (e.g. Ubuntu includes fonts for many different scripts in the default install). From this point of view, having Indic/Arabic text display correctly in non Indic/Arabic locales is desirable (especially in the web browser).
There is one modification to my steps to reproduce the bug: if using DejaVu to reproduce the bug, you must use a version < 2.5. The latest version doesn't include "liga" table entries for the ligatures in question, so the bug is not triggered (it seems that the change to the font was made because of this bug).
In Mozilla Bugzilla #331716, Roc-ocallahan (roc-ocallahan) wrote : | #40 |
(In reply to comment #12)
> What I was getting at is that a distro might want to be able to display more
> scripts than just the user's chosen locale (e.g. Ubuntu includes fonts for
> many different scripts in the default install). From this point of view,
> having Indic/Arabic text display correctly in non Indic/Arabic locales is
> desirable (especially in the web browser).
It certainly is desirable! and we're working on it. It's just that with FF1.5/2 that requires some fairly nasty tradeoffs.
In Mozilla Bugzilla #331716, Jshin1987 (jshin1987) wrote : | #41 |
(In reply to comment #11)
> For languages without complex script requirements, the non-Pango code is quite
> adequate. This includes European languages, most East Asian languages (CJK),
> and Hebrew. As far as I know, only Indic languages and Arabic (including
> Persian/Farsi) really benefit from the Pango path.
As the 0th or even 1st-order approximation, what you wrote above is more or less right, but it's not that simple. See bug 215219 comment #97. Korean has complex script requirements (unfortunately, Pango's Korean support is inferior to that of ours because my patch to Pango a few years ago never got merged). So do Hebrew, Latin, and Greek.
(In reply to comment #13)
> It certainly is desirable! and we're working on it. It's just that with FF1.5/2
> that requires some fairly nasty tradeoffs.
In retrospect, my dirty hack in bug 215219 might have been an acceptable compromise for ff 1.5. With that, MathML still works well, Arabic/Hebrew work decently, and there's little performance loss for "non-complex" scripts.
BTW, the version field for this bug is set to 1.0branch, but that's not quite right given that ff 1.0 (gecko 1.7branch) branch does not contain blizzard's patch for bug 214715. RedHat and other distros ported the patch to ff 1.0 and still includes FF 1.0 instead of 1.5 (even Fedora Core 5 has 1.0.x whose PS printing module is not so good because bug 234182 was not fixed for FF1.0/Gecko 1.7). In our tree, it's not until gecko 1.8 that his patch was incorporated.
Bruce Cowan (bruce89-deactivatedaccount) wrote : | #42 |
The upload of 2.5-0ubuntu2 fixes it for me, a workaround I presume?
Stefan (stfn2) wrote : | #43 |
Well does it have the ligatures? If not then yes, a workaround, and for the DejaVu fonts only.
James Henstridge (jamesh) wrote : | #44 |
The new DejaVu version uses "discretionary ligature" table entries for the problem ligatures rather than normal ligature table entries. Pango doesn't use the discretionary ligature tables, so the firefox pango renderer bug is not triggered.
So the bug still exists, but the likelyhood of an Ubuntu Dapper user running into it now have been greatly reduced.
Ben Laenen (benlaenen) wrote : | #45 |
As a DejaVu developer: yes, we did make the ligatures discretionary so Firefox wouldn't have problems. We decided to do that because a lot of users experienced this problem, although every possible workaround automatically disables ligatures in Pango too. But we just have to make sure that the font is displayed good for everyone.
We want to make them normal ligatures again when this thing gets fixed in Firefox, and hope that happens as soon as possible.
Matt Zimmerman (mdz) wrote : | #46 |
It seems to me that the workaround reduces the severity of this bug; adjusting accordingly
Stefan (stfn2) wrote : | #47 |
I don’t agree. It may decrease the severity of the overall _situation_ for Ubuntu users, but it does nothing to decrease the severity of the Firefox bug as such. For any webpage that requests a font besides DejaVu that uses ligatures, and for any user who would like to set another font with ligatures as his default, the bug is still there in full force. And it makes text illegible, text that can be in online payment forms, contracts, etc.! If that isn’t major, then I don’t know what is.
Also, it seems to be the same bug that breaks display of Devanagari when rendered justified, see e.g. the first entry in
http://
(for comparison, switch off the style sheet on that page).
So the Firefox developers _really_ need to get their act together and implement proper non-buggy Pango support. And until they are done doing that (it will be a year or so), the Ubuntu Firefox packagers just have to think of something to alleviate the problem – something less feeble than switching off ligatures in this or that individual font (which as a sideeffect, of course, deprives all the rest of the GUI of ligatures, where they worked just fine).
Now I don’t want to get into a game where somebody decreases the severity of this bug, then I increase it again, and so an ad infinitum. So please do let me know whether you agree with my reasoning above, and if not please tell me why, before I go and change the severity back to Major. Thank you.
Jordi Mallach (jordi) wrote : Re: [Bug 37828] Re: Text rendered incorrectly in presence of ligatures and justified text | #48 |
On Wed, May 03, 2006 at 09:52:51PM -0000, Stefan wrote:
> I don’t agree. It may decrease the severity of the overall
> _situation_ for Ubuntu users, but it does nothing to decrease the
> severity of the Firefox bug as such. For any webpage that requests a
> font besides DejaVu that uses ligatures, and for any user who would
> like to set another font with ligatures as his default, the bug is
> still there in full force. And it makes text illegible, text that can
> be in online payment forms, contracts, etc.! If that isn’t major,
> then I don’t know what is.
>
> Also, it seems to be the same bug that breaks display of Devanagari
> when rendered justified, see e.g. the first entry in
>
> http://
>
> (for comparison, switch off the style sheet on that page).
>
> So the Firefox developers _really_ need to get their act together and
> implement proper non-buggy Pango support. And until they are done
> doing that (it will be a year or so), the Ubuntu Firefox packagers
> just have to think of something to alleviate the problem – something
> less feeble than switching off ligatures in this or that individual
> font (which as a sideeffect, of course, deprives all the rest of the
> GUI of ligatures, where they worked just fine).
>
> Now I don’t want to get into a game where somebody decreases the
> severity of this bug, then I increase it again, and so an ad
> infinitum. So please do let me know whether you agree with my
> reasoning above, and if not please tell me why, before I go and change
> the severity back to Major. Thank you.
I agree with Matt that the severity of this bug has decrease, even if it
has been aleviated by a fix in just one font.
The fix on that one font will apply to, I'd guess, 90% of the Ubuntu
users. Evidently, the bug exists for non-latin scripts, etc. but the
common usecase is this, which now works correctly.
Lowering the severity doesn't mean the bug is fixed. It just means it
won't hit so hard.
Jordi
--
Jordi Mallach Pérez -- Debian developer http://
<email address hidden> <email address hidden> http://
GnuPG public key information available at http://
Stefan (stfn2) wrote : | #49 |
Jordi: I understand what you are saying. But one of my main points was that people don’t browse the net with just one font. Even if a user does set a non‐ligature version of DejaVu as his default font, he will in his browsing constantly encounter pages that request and use other fonts that may be rendered brokenly.
So while shipping with a non‐ligature version of DejaVu does somewhat alleviate the Firefox problem, in a way it does not go far enough. It pains me to say so, but as long as the Firefox rendering is broken, maybe the cleanest way would be to disable rendering of Latin‐script ligatures at the Pango level? Justified Devanagari in Firefox would of course still be broken then, and there would be no ligatures anywhere on the desktop. In other words, the same situation as in Breezy. The only real solution will be for Firefox’s Pango handling to be fixed once and for all, but it seems highly unlikely now that this will happen in time for Dapper.
Simos Xenitellis (simosx) wrote : | #50 |
You mention here to "disable rendering of Latin‐script ligatures at the Pango level". How is this done?
Having a special custom pango library might not be acceptable. If this could be arranged from fontconfig (/etc/fonts/
Checking the alternatives and the tight timetable of Dapper, the "no ligature" solution appeared the most suitable.
Indeed, the proper solution is to get Firefox fixed, but it looks there are no people currently available to do so.
I don't know if the task is small enough to be completed by a Summer of code entry.
Stefan (stfn2) wrote : | #51 |
Simos: I don’t know if there is a runtime option to disable the new (and much appreciated!) Latin ligature support in Pango. This would maybe have to take the form of an Ubuntu‐only temporary patch to Pango. Or maybe one could statically link just the Ubuntu Firefox against such a patched Pango, and keep a regular ligature‐enabled Pango for the rest of the system? (Sorry, as you can tell, I am not very sure what is technically feasible.)
As for fixing Firefox itself, please see the link to the upstream bug above, and Robert O’Callahan’s blog entry at:
http://
It sounds like they are on it, but that it will take a long time for this work to be finished (in Firefox 3.0, maybe, late next year). Another question is whether some acceptable partial solution could be backported before then.
rusty0101 (rusty0101+launchpad) wrote : | #52 |
From what I am seeing, this is not restricted to firefox/mozilla. I am seeing the same behaviour with FreeMono in Gedit. I have not tested the other Free fonts, but suspect the behaviour will be the same.
As a suspicion, I would suspect that the effect will ultimately be noticed in any application using the Pango font rendering tools. It may be an error in the font itself that Pango is having issues with.
Ubuntu Dapper Drake 6.06
Ben Laenen (benlaenen) wrote : | #53 |
rusty0101 wrote:
"From what I am seeing, this is not restricted to firefox/mozilla. I am seeing the same behaviour with FreeMono in Gedit. I have not tested the other Free fonts, but suspect the behaviour will be the same."
Can you post a screenshot?
I doubt that the issues are the same, since Pango generally handles ligatures nicely, and because this bug is produced by some weird Firefox quirks. I think Pango is just confused because it's a monospaced font. The Firefox bug happens with any font that has ligatures (including non-monospaced ones).
Changed in firefox: | |
status: | Unconfirmed → Confirmed |
In Mozilla Bugzilla #331716, 5-admin-globalcurves-com (5-admin-globalcurves-com) wrote : | #54 |
You can easily see this bug by going to google and searching for anything:
Here's and example: http://
David Farning (dfarning) wrote : | #55 |
This issue is still open upstream.
Ilmari Vacklin (wolverian) wrote : | #56 |
I see this on Feisty in Epiphany, with Pango rendering enabled.
Alexander Sack (asac) wrote : | #57 |
properly submitted upstream ... marking as 'In Progress'
Changed in firefox: | |
assignee: | nobody → mozillateam |
status: | Confirmed → In Progress |
Changed in firefox: | |
assignee: | mozillateam → mozilla-bugs |
Jeff Greene (jeffgreene) wrote : | #58 |
- gutsy_firefox_bug.html Edit (855 bytes, text/html)
This is still present in Gutsy Gibbon with the latest updates. I have attached a sample test page to see the bug in action.
In Mozilla Bugzilla #331716, Keenan Pepper (keenanpepper) wrote : | #59 |
What's the status of this bug? Has anyone been working on it?
In Mozilla Bugzilla #331716, Jmdesp (jmdesp) wrote : | #60 |
This problem should be solved with the new textframe code. This code will be turned on in the Fx nightlies very soon, many at the start of next week.
Roc has indicated that he is taking into account the problem on his blog http://
DivineGod (divinegod) wrote : | #61 |
I have encountered this exact bug when I upgraded from Feisty to Gutsy just 3 days ago.
I have tried to investigate the nature of the bug and have come to the conclusion that either the DejaVu font set is broken in someway or that firefox renders the text wrongly.
I think it relates to the DejaVu font set because when forcing a font through the firefox preferences it appears with both serif and sans-serif versions of DejaVu. I can't find any other font on my system that create the same problem.
I post this so that this isn't forgotten.
Keenan Pepper (keenanpepper) wrote : | #62 |
> I think it relates to the DejaVu font set because when forcing a font through the firefox preferences it appears with both serif and sans-serif versions of DejaVu. I can't find any other font on my system that create the same problem.
It's not a bug in DejaVu, it's a typography feature in DejaVu (ligatures) that triggers a bug in Firefox. See https:/
Keenan Pepper (keenanpepper) wrote : | #63 |
It seems like this Firefox bug won't be fixed until Firefox 3.0, which won't be released until November (http://
Philipp Kern (pkern) wrote : | #64 |
Then please switch the default font in Gutsy's Firefox, although that would be a bad thing aswell as the feature itself (i.e. ligatures) is quite nice. The bug is present in new installs.
John Vivirito (gnomefreak) wrote : | #65 |
Gutsy users can you please run firefox from command line using the command "MOZ_DISABLE_
Ben Laenen (benlaenen) wrote : | #66 |
You can just disable the ligatures in the fonts if you want, it's not hard. We disabled them in DejaVu for a long time because of this bug. But since there was no move towards fixing it we just enabled them again because we cannot cripple our fonts just because of one buggy program. If packagers want to do it, I'm not stopping them, but I'd rather see them patching a Firefox bug instead of removing features from our fonts.
Ben Laenen (benlaenen) wrote : | #67 |
MOZ_DISABLE_PANGO=1 is indeed the other way to work around the bug, but you'll lose support for a lot of non-Latin languages that way.
Bruce Cowan (bruce89-deactivatedaccount) wrote : Re: [Bug 37828] Re: Text rendered incorrectly in presence of ligatures and justified text | #68 |
On Mon, 2007-09-24 at 19:04 +0000, Ben Laenen wrote:
> You can just disable the ligatures in the fonts if you want, it's not
> hard. We disabled them in DejaVu for a long time because of this bug.
> But since there was no move towards fixing it we just enabled them again
> because we cannot cripple our fonts just because of one buggy program.
> If packagers want to do it, I'm not stopping them, but I'd rather see
> them patching a Firefox bug instead of removing features from our fonts.
>
Indeed, this is Firefox's problem, and the fact that this bug hasn't
been fixed since it appeared in Dapper shows that Mozilla don't think
much of Linux issues.
The same goes for the GTK+ themeing.
Sorry this is a rant, I'd rather have WebKit.
--
Bruce Cowan <email address hidden>
Keenan Pepper (keenanpepper) wrote : | #69 |
> Indeed, this is Firefox's problem, and the fact that this bug hasn't
> been fixed since it appeared in Dapper shows that Mozilla don't think
> much of Linux issues.
Now now, don't be so hard on the Mozilla people. I'm using Gran Paradiso Alpha 7 right now and this bug is completely fixed. But it was fixed as a result of other major changes, so it can't go into an update of Firefox 2. I think it's just unfortunate timing.
Anyway, for Hardy Heron this bug will be long gone.
Bruce Cowan (bruce89-deactivatedaccount) wrote : | #70 |
Sorry, I'll try to keep my opinion to the forums.
James Henstridge (jamesh) wrote : | #71 |
Bruce: there are a few things to keep in mind here:
1. The pango patch is not part of Mozilla's builds. That said, most Linux distros apply the patch since upstream Firefox fails to render a number of languages they care about.
2. The version of Firefox in Gutsy uses the same rendering engine as the one in Dapper (Gecko 1.8).
3. The Mozilla guys have been working on complex text rendering (using Pango on Linux) for Gecko 1.9, but that won't reach users til Firefox 3.0.
It seems that no one with the knowledge to fix the existing Pango patch to handle ligatures has the time to do so.
Forlong (forlong) wrote : | #72 |
I would prefer Ben Laenen's proposal to disable ligatures in DejaVu Sans for Gutsy, since it's the last release with this bug anyway.
For whatever reason I get this now with Gutsy on the exact same profile of Firerfox that did not have this problem in Feisty.
The only workaround for me is disabling "Allow pages to use their own fonts" and force using Bitstream Vera Sans (or any other than DejaVu). Which is not really a proper fix - as is MOZ_DISABLE_PANGO=1
Gert Kulyk (gkulyk) wrote : | #73 |
Feisty did use another /usr/lib/
Forlong (forlong) wrote : | #74 |
> Feisty did use another /usr/lib/
Thanks for the info. I guess due to that change, I get this bug as well: https:/
I'll try switching back to Feisty's script too.
Denis Moyogo Jacquerye (moyogo) wrote : | #75 |
- removing ligatures in DejaVu fonts Edit (17.2 KiB, application/octet-stream)
Here a patch removing ligatures from DejaVu fonts 2.19 if that's what you want to do for the release.
Keenan Pepper (keenanpepper) wrote : | #76 |
Please apply Denis Jacquerye's patch before the release candidate on Thursday!! This is a serious bug that can easily be worked around!
Steve Langasek (vorlon) wrote : | #78 |
This bug has been worked around in ttf-dejavu with the upload of version 2.19-1ubuntu3:
ttf-dejavu (2.19-1ubuntu3) gutsy; urgency=low
* Workaround: patched the fonts to disable ligatures due to a bug in
firefox (LP #37828)
-- Arne Goetje <email address hidden> Wed, 10 Oct 2007 12:25:02 +0800
Changed in ttf-dejavu: | |
status: | New → Fix Released |
Bruce Cowan (bruce89-deactivatedaccount) wrote : | #79 |
Yay, thanks Mozilla.
Lee.Tambiah (flossgeek) wrote : Re: [Bug 37828] Re: Text rendered incorrectly in presence of ligatures and justified text | #80 |
The updates have fixed the issue here also.Thanks.
Jordi Mallach (jordi) wrote : Re: [Bug 37828] Re: Text rendered incorrectly in presence of ligatures and justified text | #81 |
On Fri, Oct 12, 2007 at 10:48:42PM -0000, Steve Langasek wrote:
> ** Changed in: ttf-dejavu (Ubuntu)
> Status: New => Fix Released
I don't think this bug should be closed before the upload of firefox3.
This is probably the best workaround for the moment, but only that.
--
Jordi Mallach Pérez -- Debian developer http://
<email address hidden> <email address hidden> http://
GnuPG public key information available at http://
Jordi Mallach (jordi) wrote : | #82 |
Ah, nm me, I see it fixed the "ttf-dejavu" component of the bug, not firefox's.
Steven Brown (steven-w-j-brown) wrote : | #83 |
After updating, the display looks good, but it still shifts if you try to select some individual characters or strings.
Mathieu Laurent (mla) wrote : | #84 |
Fixed for me ;-)
Tuttle (marianhermann) wrote : | #85 |
I am unhappy with this workaround because the ligatures worked well in for example Incspape.
As a workaround it would have been sufficient not to use DejaVu in Firefox instead of affecting other programs that now suffer from an inferior typographical quality when using DejaVu.
This is not a bug in DejaVu but in Firefox, Firefox has still the same problem if a font with ligatures is used like Palatino Linotype for example.
Bruce Cowan (bruce89-deactivatedaccount) wrote : | #86 |
/etc/apt/
Package: ttf-dejavu
Pin: version 2.19-1ubuntu2
Pin-Priority: 1000
Package: ttf-dejavu-core
Pin: version 2.19-1ubuntu2
Pin-Priority: 1000
Package: ttf-dejavu-extra
Pin: version 2.19-1ubuntu2
Pin-Priority: 1000
Thanks again Mozilla.
John Vivirito (gnomefreak) wrote : | #87 |
This has been fixed in 3.0, last comment on upstream bug from last year states its fixed as well.
John Vivirito (gnomefreak) wrote : | #88 |
This has been fixed in all bug trackers, it wasnt fixed in 1.5 as i recall due to it reaching EOLS before they were ablet o fix this. i dont remember if 1.5 got the fix or not but either way this bug has been fixed in supported browsers
John Vivirito (gnomefreak) wrote : | #89 |
marking as invalid due to no update since last year and it has been fixed everywhere.
Changed in firefox: | |
assignee: | mozilla-bugs → nobody |
status: | In Progress → Invalid |
status: | New → Fix Released |
status: | New → Fix Released |
John Vivirito (gnomefreak) wrote : | #90 |
Is anyone still seeing this issue?
James Henstridge (jamesh) wrote : | #91 |
Relinking bug watches.
Changed in firefox: | |
status: | Fix Released → Unknown |
status: | Fix Released → Unknown |
James Henstridge (jamesh) wrote : | #92 |
This bug is certainly not invalid, so please don't mark it as such. There was ample evidence of the problem.
The firefox in Hardy is not exhibiting this bug. Firefox does appear to be using ligatures for editable text for fonts that have them. It does not appear to be using ligatures for other text, so the rendering problems on pages that combine fonts-with-
Having Firefox use the available ligatures would be nice, but is not required (it is another problem and probably best tracked upstream). This is enough to allow Ubuntu's default fonts to contain ligatures without causing rendering errors.
Changed in firefox: | |
status: | Invalid → Fix Released |
John Vivirito (gnomefreak) wrote : | #93 |
James fix released is fine but when the last comment is over 6 months ago without being updated its invalid because noone tells anyone when its been fix and i was never able to reproduce this. Also bug was was reported on 1.5. 1.5 is no longer supported , I suggest people update bugs more often. Honestly james invalid/fix released either way its closed .
John Vivirito (gnomefreak) wrote : | #94 |
No need to keep the upstream bugs as they have been fixed and again noone has responded in a long time, if its fixed in 2.0-3.0 than they implemented the fix and thus they should be closed.
Kasper Peeters (kasper-peeters) wrote : | #95 |
This problem is still present in firefox-2 in Hardy. Though I can understand that no-one wants to waste time on fixing that anymore, now that firefox-3 is the default.
James Henstridge (jamesh) wrote : | #96 |
John: the upstream tasks are there to track related activity in related bug trackers. Unlinking them and changing the statuses just gives an incorrect view of their status there. If you think the upstream firefox task should be closed, bring that up at bugzilla.
Kasper: I hadn't realised that firefox 2 was still found in Hardy. I guess it would make sense for a firefox 3 task to be marked fixed and a firefox 2 task open or invalid (if it was decided that no fix would be forthcoming).
John Vivirito (gnomefreak) wrote : Re: [Bug 37828] Re: Text rendered incorrectly in presence of ligatures and justified text | #97 |
James Henstridge wrote:
> John: the upstream tasks are there to track related activity in related
> bug trackers. Unlinking them and changing the statuses just gives an
> incorrect view of their status there. If you think the upstream firefox
> task should be closed, bring that up at bugzilla.
> for the Debian bug.
>
> Kasper: I hadn't realised that firefox 2 was still found in Hardy. I
> guess it would make sense for a firefox 3 task to be marked fixed and a
> firefox 2 task open or invalid (if it was decided that no fix would be
> forthcoming).
>
>
James,
So what makes you think there was a fix for this bug? If there was
a fix already upstream bug would have been marked fixed but its not. So
since there isnt a fix for it they should all be invalid. Now as for
upstream they died on the bug and since this is not a new bug and since
the firefox version that was affected at the time was 1.5 and that is no
longer supported. If i had to guess the xulrunner is what fixed this bug
but didnt fix it just works differently, that isnt really a fix. As for
upstream and debian i have already emailed my contacts at both of them
and waiting for a reply. Also please understand we(Ubuntu-
dont do bug states as everyone else does. There is plenty of info on
this bug to be "confirmed" but not fix released since there was never a
proper fix to this. Also bugs that are not updated for well over 3
months get Invalid (that goes for mozilla team and bug team) This is by
no means to fight or argue with you since it is not the place nor time
but i wanted to let you in on how Mozilla team does bugs and that this
bug was never fixed if it was upstream/debian bugs would have been closed.
Kasper, firefox-2.0 wont get a fix for this unless its bundled in with a
new security update but i doubt that Mozilla will speand a whole lot of
time on this since its not a critical bug,
--
Sincerely Yours,
John Vivirito
https:/
https:/
Linux User# 414246
James Henstridge (jamesh) wrote : | #98 |
John: there are obviously ligatures in the the DejaVu font in Hardy (you can see other GTK apps using them). We can also see that Firefox is not misrendering justified text anymore, so it does look like it has been fixed. We knew that the Firefox guys were rewriting the text rendering code for 3.0 (see previous comments), so it isn't surprising that the bug is now fixed in Hardy.
Alexander Sack (asac) wrote : Re: [Bug 37828] Re: Text rendered incorrectly in presence of ligatures and justified text | #99 |
On Wed, May 14, 2008 at 12:44:41PM -0000, James Henstridge wrote:
> John: there are obviously ligatures in the the DejaVu font in Hardy (you
> can see other GTK apps using them). We can also see that Firefox is not
> misrendering justified text anymore, so it does look like it has been
> fixed. We knew that the Firefox guys were rewriting the text rendering
> code for 3.0 (see previous comments), so it isn't surprising that the
> bug is now fixed in Hardy.
>
affects ubuntu/firefox-3.0
status fixreleased
affects ubuntu/firefox
status wontfix
- Alexander
Changed in firefox: | |
status: | Fix Released → Won't Fix |
Changed in firefox: | |
status: | Unknown → Confirmed |
Changed in firefox: | |
status: | Unknown → Confirmed |
In Mozilla Bugzilla #331716, Ahangama (ahangama) wrote : | #100 |
The screenshots given with the original report shows as if the font maker forgot to adjust the Advance Width if the ligature glyph leaving it at the width used by the first letter of the combination. If this theory is correct, there is nothing that Mozilla should do.
In Mozilla Bugzilla #331716, Ben Laenen (benlaenen) wrote : | #101 |
(In reply to comment #18)
> The screenshots given with the original report shows as if the font maker
> forgot to adjust the Advance Width if the ligature glyph leaving it at the
> width used by the first letter of the combination. If this theory is
> correct, there is nothing that Mozilla should do.
It's already determined long ago that the bug was in Mozilla, and it has been fixed in Firefox 3.0.
In Mozilla Bugzilla #331716, Roc-ocallahan (roc-ocallahan) wrote : | #102 |
Right, this is a 1.8 branch bug, i.e. Firefox 2 only.
In Mozilla Bugzilla #331716, Jmdesp (jmdesp) wrote : | #103 |
IMO there's no reason to keep this open and we should WONTFIX it, as
- there's nobody strongly willing to take this bug and fix it in Firefox 2.
- even if there was someone willing to do that, I believe such a patch would have no chance of getting into the 2 branch which is now open about only for security fixes, right ?
In Mozilla Bugzilla #331716, Roc-ocallahan (roc-ocallahan) wrote : | #104 |
WONTFIX may not be technically correct, but I'd certainly like to discourage anyone from wasting their time on this, so ... WONTFIX.
Changed in firefox: | |
status: | Confirmed → Won't Fix |
Changed in firefox (Debian): | |
status: | Confirmed → Fix Released |
Changed in firefox: | |
importance: | Unknown → Medium |
Created attachment 216243
Showing the 'fi' ligature.