Closed
Bug 564444
Opened 14 years ago
Closed 13 years ago
[DWrite] rendering of text with @font-face includes dots in lower-right corner of each glyph
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | - |
People
(Reporter: ted, Assigned: jfkthame)
References
(Depends on 1 open bug, )
Details
Attachments
(2 files)
At the linked URL, which uses @font-face, I get a dot rendered in the lower right corner of each glyph. See attached screenshot. I have DWrite enabled. Mozilla/5.0 (Windows; U; Windows NT 6.1; WOW64; en-US; rv:1.9.3a5pre) Gecko/20100506 Minefield/3.7a5pre
Reporter | ||
Comment 1•14 years ago
|
||
Somehow failed to attach this.
Assignee | ||
Comment 2•14 years ago
|
||
Weird. To clarify, it looks like the dot is only occurring at the lower right corner of each glyph *run*, not each individual glyph.
Assignee | ||
Comment 4•14 years ago
|
||
As pointed out in bug 617826, it seems the dot is really appearing at the lower *left* of each space rather than the lower *right* of the preceding glyph run.
I filed 617826. (I spent 20 minutes looking for an existing bug, but couldn't find one because I used the keyword 'DirectWrite'...) Anyhoo, I updated my nVidia 7600 GS driver as requested, but I'm still having the same problem as shown in the screenshots in this bug and the dup. One more thing to note is that if I select the space character, the dot does not appear in the selection. For completeness, I've attached a screenshot that shows this (the selection starts with the space character).
Reporter | ||
Comment 6•14 years ago
|
||
This is really annoying because the Mozilla Labs blog triggers it. It bothers me every time I read a blog post there (which winds up being fairly often).
blocking2.0: --- → ?
Assignee | ||
Comment 7•14 years ago
|
||
To clarify, do you see this problem with D2D(+DWrite) rendering, or does it occur only with GDI+DWrite?
Reporter | ||
Comment 8•14 years ago
|
||
I have DWrite enabled, but not D2D.
The 7600 GS doesn't support DirectX 10/Direct2D, so I can't test with it on. On the (very) off chance it's related, there's also a current bug (bug 590568) where plugins overwrite chrome content with a white square. That's also affecting people using the 7600 GS (and related cards).
I think we should simply not support DirectWrite without D2D. I think on Windows we should only support: BasicLayers+GDI D3D9+GDI D3D10+D2D(+DirectWrite)
I think this should block, but we can fix it by just disabling D2D for all but D3D10.
blocking2.0: ? → final+
Assignee | ||
Comment 12•14 years ago
|
||
(In reply to comment #10) > I think we should simply not support DirectWrite without D2D. In that case we'll need to address the question of how we handle fonts if we switch from D2D+DW to all-GDI rendering on the fly. At that point, we need to replace the platform font list, along with all the cached font objects, etc. In bug 606419 we fixed the crash by allowing DWrite to continue being used at that point, but if we want to disable that combination then we need to fix bug 615905.
Is that just to support dynamic pref changes? If so, I say, who cares? We don't have to support dynamic mode changes, and it's not worth writing much code to handle them.
Assignee | ||
Comment 14•14 years ago
|
||
(In reply to comment #13) > Is that just to support dynamic pref changes? If so, I say, who cares? We don't > have to support dynamic mode changes, and it's not worth writing much code to > handle them. I'd definitely agree with that, and so I wasn't keen to do bug 615905. But it's not just for pref changes, unfortunately: the problem also arises when we encounter some kind of problem with D2D (driver crashes, device disappears, an update happens, etc - I don't really know what situations trigger it) and gfxWindowsPlatform::UpdateRenderMode() decides that D2D can't be used, so it switches to GDI rendering. This is what led to bug 606419, which we fixed for now by ensuring that we can continue to use the DW fonts after such a switch. But if we're not going to allow the GDI+DW combination, we need to reconsider what UpdateRenderMode() is doing and how to handle it.
Comment 15•14 years ago
|
||
Disabling DirectWrite when there's no Direct2D seems a bit harsh. The only glitch I've encountered in fairly intensive use over 5 something months of having DirectWrite+GDI is this dot. I consider rendering to be *significantly* better with DirectWrite on (which is why I've left DirectWrite on for 5 months despite knowing it causes the dot). There are other issues with DirectWrite itself (due to fixes needed by MS), but that's regardless of whether using GDI or Direct2D.
Comment 16•14 years ago
|
||
This is caused by using GDI + DirectWrite, which isn't a supported combination, so it doesn't block.
blocking2.0: final+ → -
If it only happens for downloaded fonts, after we recover from a driver crash, I agree this doesn't need to block.
Assignee | ||
Comment 18•13 years ago
|
||
This should be fixed by the patch in bug 692744, which relates to text-shadow (and is not limited to DWrite+GDI) but has the same root cause.
Depends on: 692744
Assignee | ||
Comment 19•13 years ago
|
||
I believe this had the same cause as bug 692744 (creating a 1x1 pixel surface for what should be an empty glyph image), and I can no longer reproduce it now that patch has landed - resolving as FIXED.
Assignee: nobody → jfkthame
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 20•13 years ago
|
||
I don't have the computer that I originally filed this with, so that's fine with me.
Comment 22•13 years ago
|
||
I'm still getting the dots with [Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0a1) Gecko/20111013 Firefox/10.0a1] exactly as per the Dec 2010 screenshot I posted. (My hardware hasn't changed.) Not that I consider this bug particularly important.
Assignee | ||
Comment 23•13 years ago
|
||
(In reply to voracity from comment #22) > I'm still getting the dots with [Mozilla/5.0 (Windows NT 6.1; WOW64; > rv:10.0a1) Gecko/20111013 Firefox/10.0a1] exactly as per the Dec 2010 > screenshot I posted. The first Nightly that includes the fix should be 20111014, as the patch landed in mozilla-central several hours after the 10/13 nightly builds.
You need to log in
before you can comment on or make changes to this bug.
Description
•