inline-css icon indicating copy to clipboard operation
inline-css copied to clipboard

Support for @font-face

Open mylescc opened this issue 9 years ago • 9 comments

At the moment when I run inline-css it seems to remove all @font-face queries from my html file. Is there some way that, like media queries, these can be ignored?

Thanks!

mylescc avatar May 13 '16 12:05 mylescc

~~@font-face won't work in nearly every email client, so I don't see the purpose if keeping it in: https://www.campaignmonitor.com/blog/email-marketing/2010/03/does-font-face-work-in-email/~~

Edit: See my newer comment below: https://github.com/jonkemp/inline-css/issues/42#issuecomment-297469162

elliottregan avatar Jun 09 '16 19:06 elliottregan

fair enough! I'm guessing support for font-face isn't going to improve any time soon either.

mylescc avatar Jun 10 '16 11:06 mylescc

What if you're not using this for emails? Still would be good to preserve.

rafibomb avatar Jun 10 '16 18:06 rafibomb

Then I'd say it should be handled in the same way as outlined in this issue: https://github.com/jonkemp/inline-css/issues/31

elliottregan avatar Jun 10 '16 20:06 elliottregan

@elliottregan your link to font-face support article is outdated Here is actual support list (which is much more bigger): https://www.campaignmonitor.com/resources/guides/web-fonts-in-email/

shrpne avatar Apr 26 '17 13:04 shrpne

@shrpne Great! I've definitely changed my perspective since then. I don't think that this package should be the arbiter of what is valid CSS. it should just inline all CSS as best it can.

elliottregan avatar Apr 26 '17 16:04 elliottregan

Juice seems to support this. You can try that. The reason I made this in the first place is that Juice was no longer being maintained. It is now. I am not really interested in developing new features at this time.

https://github.com/Automattic/juice

jonkemp avatar Dec 23 '17 15:12 jonkemp

note you can add another

overbyte avatar Jul 16 '20 17:07 overbyte

@jonkemp could you please make it clear in the project readme on top? It is just a waste of time. I was choosing between inline-css one and Juice, have chosen inline-css as most recent and modern just to find out a day later, accidentally, in this thread, that inline-css is not in development anymore. Please add it to the readme, it can save hours if not days for somebody.

seyfer avatar Nov 09 '21 15:11 seyfer