Multi-stroke text effect in CSS
21–30 of 50 posts
Re: Multi-stroke text effect in CSS
#22Earlier quoted context omitted.
firefox looks like an SDF (shortest distance to the object), I'm not sure what the chrome one is...
I would assume they are just drawing the outline, not performing any distance calculations, and the differences are just a result of different linejoin choices. [1] [1] https://www.w3.org/TR/fill-stroke-3/#stroke-linejoin
I may be entirely wrong though, I don't know in detail how browsers render stuff
Re: Multi-stroke text effect in CSS
#23People should quit trying to make CSS a drawing tool--it is not--and start learning how to use SVG instead or images.
If you have a lot of "images" with such effects to generate from dynamic text, using SVG makes no sense, is vastly more complex and less flexible than the solution here.
SVG is not great for text - HTML has more features - but for display text it's OK.
Re: Multi-stroke text effect in CSS
#24People should quit trying to make CSS a drawing tool--it is not--and start learning how to use SVG instead or images.
Re: Multi-stroke text effect in CSS
#25People should quit trying to make CSS a drawing tool--it is not--and start learning how to use SVG instead or images.
Re: Multi-stroke text effect in CSS
#26People should quit trying to make CSS a drawing tool--it is not--and start learning how to use SVG instead or images.
Re: Multi-stroke text effect in CSS
#27Re: Multi-stroke text effect in CSS
#28Re: Multi-stroke text effect in CSS
#29I wonder why the firefox CSS rendering engine prefers to smooth out. Looks like a dramatically different implementation, but maybe that's just because it's an edge case of rendering
Re: Multi-stroke text effect in CSS
#30OT: really love the design of this blog. Simple, clear and content first.
The Daily Sketch series or 'CSS Animation with offset-path' are equally fun.