ai2html icon indicating copy to clipboard operation
ai2html copied to clipboard

Text outline as text-shadow?

Open cedricsam opened this issue 7 years ago • 1 comments

I was wondering if there had been discussion before about text outlining? In other words, do we have a mechanism to convert stroke colors on text in Illustrator to some equivalent form in HTML/CSS?

I know that text-outline was removed from CSS3, and the WebKit-specific -webkit-text-stroke is non-standard. Would the seemingly good way to accomplish this with a text-shadow of 1px on every side? (i.e. with text-shadow: 1px -1px 0 #fff, 1px 1px 0 #fff, -1px 1px 0 #fff, -1px -1px 0 #fff;)

cedricsam avatar Jun 04 '18 16:06 cedricsam

I think it should be added to the documentation's Custom CSS section that text-shadow is a solution for text outlining (albeit for only a 1px stroke).

squirrelsquirrel78 avatar May 18 '19 16:05 squirrelsquirrel78