Closed Bug 758980 Opened 12 years ago Closed 12 years ago

Certain font disappears when page scroll down and resize width

Categories

(Core :: Graphics, defect)

15 Branch
x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16
Tracking Status
firefox15 + verified

People

(Reporter: alice0775, Assigned: bas.schouten)

References

Details

(Keywords: regression)

Attachments

(4 files, 2 obsolete files)

Attached file html and font (obsolete) —
Build Identifier:
http://hg.mozilla.org/mozilla-central/rev/133aa3a2ef0a
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/15.0 Firefox/15.0a1 ID:20120527030515

Font disappears when page scroll down and resize width

Steps to reproduce:

1. Install font JSGOTHIC.TTC
2. Open index.html
3. Scroll down and resize window width if necessary

Actual results:
  Font disappears

Expected results:
  Should not


Regression window(m-c)
Good:
http://hg.mozilla.org/mozilla-central/rev/36e938e51481
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/15.0 Firefox/15.0a1 ID:20120523030525
Bad:
http://hg.mozilla.org/mozilla-central/rev/aa2b52bd0374
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=36e938e51481&tochange=aa2b52bd0374

Regression window(m-i)
Good:
http://hg.mozilla.org/integration/mozilla-inbound/rev/bbb12d0bcf49
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/15.0 Firefox/15.0a1 ID:20120521220651
Bad:
http://hg.mozilla.org/integration/mozilla-inbound/rev/abbf642df562
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/15.0 Firefox/15.0a1 ID:20120521222950
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=bbb12d0bcf49&tochange=abbf642df562

Triggered by:
abbf642df562	Bas Schouten — Bug 715768: Enable Azure-Thebes wrapper by default for D2D. r=jrmuizel


Setting gfx.content.azure.enabled to false helps
Graphics
Adapter Description : ATI Radeon HD 4300/4500 Series
Vendor ID : 0x1002
Device ID : 0x954f
Adapter RAM : 512
Adapter Drivers : aticfx64 aticfx64 aticfx32 aticfx32 atiumd64 atidxx64 atiumdag atidxx32 atiumdva atiumd6a atitmm64
Driver Version : 8.961.0.0
Driver Date : 4-5-2012
Direct2D Enabled : true
DirectWrite Enabled : true (6.1.7601.17789)
ClearType Parameters : Gamma: 2200 Pixel Structure: RGB ClearType Level: 50 Enhanced Contrast: 200 
WebGL Renderer : Google Inc. -- ANGLE (ATI Radeon HD 4300/4500 Series) -- OpenGL ES 2.0 (ANGLE 1.0.0.1041)
GPU Accelerated Windows : 1/1 Direct3D 10
AzureBackend : direct2d
Attached file another html (obsolete) —
Attached file html
Attachment #627578 - Attachment is obsolete: true
Attachment #627579 - Attachment is obsolete: true
Attached file another html
Screen capture: http://youtu.be/BQ8eW6YQrF8
And also setting gfx.font_rendering.cleartype_params.rendering_mode to 5 helps
Pardon my ignorance, but where do I find jsgothic.ttc? :)
Attached file font
Attachment #629647 - Attachment mime type: text/plain → application/x-font-ttf
Assignee: nobody → bas.schouten
Status: NEW → ASSIGNED
This fixes the issue, this falls back to traditional rendering when DirectWrite is returning empty bounds for the alpha texture, which seems to be indicative of this problem.
Attachment #629680 - Flags: review?(jmuizelaar)
John, Bas, is there any chance we can get a reduced test case of what ever this font is doing?
(In reply to Bas Schouten (:bas) from comment #9)
> Created attachment 629680 [details] [diff] [review]
> Assume directwrite is buggy when it returns empty alpha texture bounds.
> 
> This fixes the issue, this falls back to traditional rendering when
> DirectWrite is returning empty bounds for the alpha texture, which seems to
> be indicative of this problem.

Do you know why setting gfx.content.azure.enabled to false helps?
(In reply to Jeff Muizelaar [:jrmuizel] from comment #11)
> (In reply to Bas Schouten (:bas) from comment #9)
> > Created attachment 629680 [details] [diff] [review]
> > Assume directwrite is buggy when it returns empty alpha texture bounds.
> > 
> > This fixes the issue, this falls back to traditional rendering when
> > DirectWrite is returning empty bounds for the alpha texture, which seems to
> > be indicative of this problem.
> 
> Do you know why setting gfx.content.azure.enabled to false helps?

Yes, cairo-d2d-surface.cpp:3752 has the same logic there.
Comment on attachment 629680 [details] [diff] [review]
Assume directwrite is buggy when it returns empty alpha texture bounds.

Review of attachment 629680 [details] [diff] [review]:
-----------------------------------------------------------------

Reluctant r+ because of lack of test. Please put a reference to this bug in a comment nearby.
Attachment #629680 - Flags: review?(jmuizelaar) → review+
https://hg.mozilla.org/mozilla-central/rev/d846a8245199
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
Comment on attachment 629680 [details] [diff] [review]
Assume directwrite is buggy when it returns empty alpha texture bounds.

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 715768
User impact if declined: On rare occasions missing fonts
Testing completed (on m-c, etc.): Several days m-c
Risk to taking this patch (and alternatives if risky): Very low, this is really unlikely to have a negative impact.
String or UUID changes made by this patch: None
Attachment #629680 - Flags: approval-mozilla-aurora?
Comment on attachment 629680 [details] [diff] [review]
Assume directwrite is buggy when it returns empty alpha texture bounds.

[Triage Comment]
Low risk fix for a regression in FF15. Approved for Aurora.
Attachment #629680 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
[Triage comment]
Updating the status flags since this has landed on Beta (15).
Verified as fixed with the reporter's test cases on:
Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20100101 Firefox/15.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: