Fuzzy line with Ahem on vertical writing modes

NEW
Unassigned

Status

()

3 years ago
3 years ago

People

(Reporter: xidorn, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

3 years ago
It seems to me that on horizontal writing mode, Ahem is reliable when font-size is a multiple of 5px. However, it is never reliable on vertical writing modes, a.k.a {vertical,sideways}-{lr,rl}, on Windows.

It seems Edge can render them prefectly, so I suppose it is somehow fixable.

When I was trying to import css writing modes tests from CSSWG's test repo (in bug 1258916), it seems most of the fuzzies on Windows are because of something like this.
(Reporter)

Comment 1

3 years ago
Created attachment 8735778 [details]
testcase
(Reporter)

Comment 2

3 years ago
Created attachment 8735781 [details]
Firefox vs. Edge
(Reporter)

Comment 3

3 years ago
jfkthame, any thought about this?
Flags: needinfo?(jfkthame)
This may mean that we're not device-pixel-snapping the text baseline or the line-spacing metrics (e.g. ascent) in the equivalent way for vertical text to what we do in horizontal mode.

Whether it's worth spending a lot of time to try and fix this is questionable, IMO -- unless of course we have an error that results in visible problems for real text, in which case it definitely needs fixing. Otherwise, accepting some antialiasing "fuzz" on the tests may be OK. A lot of those tests, IIRC, are inherently fragile in that they assume the rendering of a square <div> with a background color, for example, will match the rendering of an Ahem glyph -- but it's not at all surprising if a browser has different antialiasing behavior for glyphs vs rect fill, in which case mismatches at the edges are quite likely.

(The font sizes at which things "work" in horizontal mode, even, will probably be dependent on screen DPI, because it'll be the device-pixel size, not the CSS-px size, that is significant.)
Flags: needinfo?(jfkthame)

Comment 5

3 years ago
(In reply to Xidorn Quan [:xidorn] (UTC+10) from comment #0)
> It seems to me that on horizontal writing mode, Ahem is reliable when
> font-size is a multiple of 5px. However, it is never reliable on vertical
> writing modes, a.k.a {vertical,sideways}-{lr,rl}, on Windows.

Just for your information. 
It is not reliable on Linux. I can see the tiny vertical lines between glyphs.

I've set Platform and OS to ALL
OS: Windows → All
Hardware: x86_64 → All
Version: unspecified → Trunk

Updated

3 years ago
Summary: Fuzzy line with Ahem on vertical writing modes on Windows → Fuzzy line with Ahem on vertical writing modes
You need to log in before you can comment on or make changes to this bug.