Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using <font> tags for Outlook compatibility? #65

Closed
goldenapples opened this issue May 6, 2014 · 2 comments
Closed

Consider using <font> tags for Outlook compatibility? #65

goldenapples opened this issue May 6, 2014 · 2 comments

Comments

@goldenapples
Copy link

I'm just starting to dig in to the mess of mail client compatibility, so I could be wrong here, but it seems like some versions of Outlook (2007, 2010, and 2013) will ignore font styles in inline style="" attributes. The only way I can find to make these clients render the desired font is to use a <font> tag, like it was 1999.

This is obviously painful. But it would be a lot more painful to have to code this by hand than to find a tool which would do it. I'm willing to work on a pull request for this feature if you think it belongs in juice.

As I envision it, there would be an option available, like inlineFontTags, which would default to false. If it were set to true, then every element which had a font-family, font-size, or color applied to it would also have its content wrapped in a a <font> tag with the appropriate face, color, and size attributes.

Does this make sense, and is it something you see as worth including in juice?

@goldenapples
Copy link
Author

I put a very rough and ugly proof of concept up at goldenapples@d044396

It works well enough for my needs, but I haven't thought through all the edge cases that would need to be covered. Also, it obviously would need to be refactored to simplify a lot; I' haven't familiarized myself enough with the structure of the module to figure out how to do that yet.

@julie-ng
Copy link

👎

I think it's better to just address Outlook's problems using if mso conditionals. See more strategies to address this problem in the Litmus community discussions. No need to complicate the css inliner even more IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants