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

ried 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:

used-ascent = floor(ascent), used-descent = ceil(height) - used-ascent
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, but we can probably start from saying like "if UA is going to round, do this direction"?

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

Received on Thursday, 20 June 2019 11:28:08 UTC