The default bug view has changed. See this FAQ.

Certain font disappears when page scroll down and resize width

RESOLVED FIXED in Firefox 15

Status

()

Core
Graphics
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Alice0775 White, Assigned: bas)

Tracking

({regression})

15 Branch
mozilla16
x86
Windows 7
regression
Points:
---

Firefox Tracking Flags

(firefox15+ verified)

Details

Attachments

(4 attachments, 2 obsolete attachments)

(Reporter)

Description

5 years ago
Created attachment 627578 [details]
html and font

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
(Reporter)

Updated

5 years ago
tracking-firefox15: --- → ?
(Reporter)

Comment 1

5 years ago
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
(Reporter)

Comment 2

5 years ago
Created attachment 627579 [details]
another html
(Reporter)

Comment 3

5 years ago
Created attachment 627583 [details]
html
Attachment #627578 - Attachment is obsolete: true
Attachment #627579 - Attachment is obsolete: true
(Reporter)

Comment 4

5 years ago
Created attachment 627584 [details]
another html
(Reporter)

Comment 5

5 years ago
Screen capture: http://youtu.be/BQ8eW6YQrF8
(Reporter)

Comment 6

5 years ago
And also setting gfx.font_rendering.cleartype_params.rendering_mode to 5 helps

Updated

5 years ago
tracking-firefox15: ? → +
(Assignee)

Comment 7

5 years ago
Pardon my ignorance, but where do I find jsgothic.ttc? :)
(Reporter)

Comment 8

5 years ago
Created attachment 629647 [details]
font
(Reporter)

Updated

5 years ago
Attachment #629647 - Attachment mime type: text/plain → application/x-font-ttf
(Assignee)

Updated

5 years ago
Assignee: nobody → bas.schouten
Status: NEW → ASSIGNED
(Assignee)

Comment 9

5 years ago
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.
(Assignee)

Updated

5 years ago
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?
(Assignee)

Updated

5 years ago
status-firefox15: --- → affected
(Assignee)

Comment 12

5 years ago
(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+
(Assignee)

Comment 14

5 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/d846a8245199
https://hg.mozilla.org/mozilla-central/rev/d846a8245199
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
(Assignee)

Comment 16

5 years ago
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+
(Assignee)

Comment 18

5 years ago
https://hg.mozilla.org/releases/mozilla-beta/rev/1513818e3c54
[Triage comment]
Updating the status flags since this has landed on Beta (15).
status-firefox15: affected → fixed

Comment 20

5 years ago
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
status-firefox15: fixed → verified
You need to log in before you can comment on or make changes to this bug.