Re: [csswg-drafts] [css-fonts] Vertical text doesn't play nicely with font-style and font-stretch (#4044)

Thank you for raising this, @litherum. I feel great for our efforts to try to solve this problem, and I agree that we should solve both stretch and style.

Fonts using two distinct low-level physical controls look reasonable to me. Blink layout engine runs in logical, but converts all logical information to physical before calling the shaping engine, and convert the shaping results back to logical. Adding a few more conversions looks reasonable to me.

For the font matching, my preference is to keep it simple; i.e., match using horizontal control only. If vertical control is missing, we can fallback to synthesized result. If vertical is available but horizontal is missing, it's considered as missing for the font matching purpose.

Technically speaking, Blink can probably implement orientation-dependent matching if desired, because we compute glyph orientation before matching fonts. But I think the additional code has little-to-no benefits. Using horizontal control only for matching will give authors more predictable results.

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

Received on Thursday, 20 June 2019 03:18:21 UTC