W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2020

Re: [csswg-drafts] [css-text] Please consider adding a text-stroke-linejoin (to lighten up fonts, etc) (#5430)

From: Chris Lilley via GitHub <sysbot+gh@w3.org>
Date: Thu, 27 Aug 2020 10:12:10 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-681857147-1598523129-sysbot+gh@w3.org>
Using outlines to bolden or lighten a font is something of a hack (and in the absence of set-geometric operations like the ill-fated [vector effects](https://www.w3.org/TR/2004/WD-SVG12-20041027/vectoreffects.html) which would actually subtract the stroke geometry from the fill geometry, relies on the fill color and the background color being solid colors, to hide the deception.

Now that we have variable fonts with a `wght` axis, "lightening" a glyph is more easily accomplished, produced the result expected by the font designer (which is less obvious with the unmodulated stroke of the fonts used to illustrate this, but is very visible on glyphs with a higher contrast between thick and thin portions) and also, propagates correctly to any children (of a different weight, or a different size).

Having said which, stroking fonts to produce a *visible* outline is totally a thing, and the `stroke-linejoin` is a useful way to control that effect.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 27 August 2020 10:12:12 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:13 UTC