Re: [csswg-drafts] [css-inline-3] Define rounding behavior of lines in block direction for `leading-trim` (#4045)

Tried to look for the past discussions/investigations but could not find one, so from my memory.

I think it's best for the font rendering engine to make the glyph origin at pixel boundary, so rounding should be applied to glyph origin, not to each metrics.

In terms of direction, IIRC, in a discussion with someone in Edge team, he recommended to floor descent. i.e.; among the two options:
1. used-ascent = floor(ascent), used-descent = ceil(height) - used-ascent
2. used-descent = floor(descent), used-ascent = ceil(height) - used-descent

that someone preferred option 2. @atanassov do you have ideas?

I think @dbaron and @eaenet have expertises on this topic, any advices are appreciated.

Note, the above two options become a little more complex when we start sub-pixel block positioning. In that case, we would like to snap the baseline (glyph origin) to physical pixel instead of ceiling height. We had some discussion on this, but not really started yet.

A bit of concern is that Maybe standardizing too much details of this can prevent innovation.

-- 
GitHub Notification of comment by kojiishi
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4045#issuecomment-503988769 using your GitHub account

Received on Thursday, 20 June 2019 11:27:11 UTC