I need to embed a font file into an email message. I know it makes the email bigger, but I need it to be self-contained, meaning no links depending on an internet connection.
I have currently working embedding images using the cid method and it works fine. However, if I use the same mechanism on fonts, it doesn't work.
Namely:
@font-face
{
font-family: Andale;
src: url("cid:andale_location") format('woff2');
}
when I have somewhere into the MIME:
Content-Type: font/woff2
Content-Disposition: inline
Content-Transfer-Encoding: base64
Content-ID: <andale_location>
d09GMgABAAAAAMEYAA4AAAABikAAAMC7AAE....
When I receive an email with that CSS (into the head section of the HTML), both gmail and outlook ignore the font-face part. I get a binary attachment into the email but no fonts whatsoever. Using the font-family "Andale" doesn't work at all.