Large glyph disappears from PDF page when zooming in
Categories
(Core :: Graphics: Text, defect)
Tracking
()
People
(Reporter: kael, Unassigned)
Details
(Whiteboard: [pdfjs-rendering][pdfjs-font-windows])
Attachments
(4 files)
When viewing this PDF of an old print article, there is a large glyph behind the title on page one that is clearly legible at 'page fit' zoom for me. If I zoom in to 'page width' it completely disappears.
| Reporter | ||
Comment 1•5 years ago
|
||
| Reporter | ||
Comment 2•5 years ago
|
||
I should note that the glyph remains visible for a brief period of time after zooming (1-2 frames?) and then disappears as the heading is re-typeset/re-rendered
Comment 3•5 years ago
|
||
The severity field is not set for this bug.
:bdahl, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 4•5 years ago
|
||
I'm unable to reproduce on Ubuntu 20 with Firefox 77. What OS and version of FF are you using?
| Reporter | ||
Comment 5•5 years ago
|
||
Just reproduced using 78.0b9 (64-bit) on Windows 10
Comment 6•5 years ago
|
||
The severity field is not set for this bug.
:bdahl, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•5 years ago
|
Does this bug still exist?
I was not able to reproduce it (with Nightly on Win 10)
Comment 9•4 years ago
|
||
(In reply to Katelyn Gadd (:kael) from comment #8)
Yes, it's still broken in 96.0b2
Could you try with Firefox Nightly?
Updated•4 years ago
|
Comment 10•3 years ago
|
||
Katelyn, could you re-test using the latest Firefox release and Firefox Nightly?
| Reporter | ||
Comment 11•3 years ago
|
||
It's broken in 108.0b3 (64-bit) still, but I'll do a nightly test when I get a chance.
Comment 12•3 years ago
|
||
None of us is able to reproduce (I tried on Linux, :calixte tried on Windows). Let's see if QA can reproduce.
| Reporter | ||
Comment 13•3 years ago
|
||
I've recently swapped out video cards as well, so it's not terribly likely to be hardware. Could be drivers, but I've also updated drivers quite a few times since the initial report.
It appears to be fixed in 109.0a1 (2022-11-23) (64-bit), I verified that it still reproduces on my 108.0b5 (64-bit) install after a reboot but not in Nightly.
Comment 14•3 years ago
|
||
Oh, that's good. Could you try using mozregression to find out what fixed the bug?
Or maybe it could be related to your profile, can you reproduce in 108 with a clean profile too?
Updated•3 years ago
|
| Reporter | ||
Comment 15•3 years ago
|
||
Hmm, it doesn't repro on a clean profile. The problem is this pref:
gfx.font_rendering.cleartype_params.rendering_mode 5
This is the first time I've had a text rendering problem related to it. Really strange.
Comment 16•3 years ago
|
||
I confirm that I can reproduce on windows 11 with gfx.font_rendering.cleartype_params.rendering_mode set to 5.
The H is rendered with zoom set to 137 but not at 138.
:jfkthame, could you have a look please ?
Comment 17•3 years ago
|
||
I can't seem to reproduce this (on Win10), even with gfx.font_rendering.cleartype_params.rendering_mode set to 5; the large background glyph keeps rendering fine, all the way up to 1000%. There must be some other factor(s) also involved....
Updated•3 years ago
|
Comment 18•3 years ago
|
||
I don't think this is a Layout issue; the rendering failure is somewhere on the Graphics side of things (or below that, e.g. in DirectWrite or drivers).
Comment 19•3 years ago
|
||
If I set gfx.canvas.accelerated to true then it works correctly.
Comment 20•3 years ago
|
||
Interesting; but on my system it's false and it still works, so there's more to it still.
When you don't set that pref, what backend does about:support indicate you're using?
Comment 21•3 years ago
|
||
| Reporter | ||
Comment 22•3 years ago
|
||
For me:
Compositing WebRender
Direct2D true
Target Frame Rate 120
DirectWrite true (10.0.19041.1566)
AzureCanvasBackend direct2d 1.1
AzureCanvasBackend (UI Process) skia
AzureContentBackend skia
AzureContentBackend (UI Process) skia
AzureFallbackCanvasBackend (UI Process) skia
GPU #1
Active Yes
Description NVIDIA GeForce RTX 3080 Ti
Vendor ID 0x10de
Device ID 0x2208
Driver Version 31.0.15.2686
Driver Date 11-8-2022
Comment 23•3 years ago
|
||
I don't see any obvious clues there. Lee, do you have an idea why this would be failing for some people? I guess it's exceeding a glyph rasterization size limit somewhere, and then the fallback codepath isn't working, but I can't seem to reproduce.
| Reporter | ||
Comment 24•3 years ago
|
||
It could be because my monitor is high-DPI (set to 150%) so the internal rasterization is higher resolution?
Comment 25•3 years ago
|
||
That would most likely affect the exact font size (or zoom amount) where it starts failing. But mine is also 150% (and I've tried zooming way, way in...), and it still doesn't fail for me.
Comment 26•3 years ago
|
||
If setting gpu canvas fixes it, then that points at Direct2D being the cause. By default Direct2D is how Canvas2D is implemented on Windows. With gpu canvas enabled, Skia gets used instead for rendering text - but still with DirectWrite, while bypassing Direct2D. So that means the bad news is that this is a bug in Direct2D that we would have to work around somehow if we could pin-point what extenuating circumstances lead to it happening, given that we can't fix it directly.
| Reporter | ||
Comment 27•3 years ago
|
||
The good news is that I don't think the cleartype params would normally get set to that at this point? The way it got set previously was by a cleartype tuner extension that no longer works. Though it's possible the OS-level cleartype settings might also override the cleartype mode used by Firefox...
Description
•