Mail signature changes font size when sent to Gmail

I have created a signature in Mac mail. However, every time I send an email to a gmail account it enlarges the font size. Has anybody else come across this? Is there a workaround?


Solution 1:

Here are the steps to make this work, even tried them on Mac OS X 10.7 Lion GM / Mail.app 5.0

  1. Open Mail.app
  2. Create a signature
  3. Close Mail.app
  4. Open Terminal and in Leopard/Snow Leopard go to ~/Library/Mail.app/Signatures, in Lion it's in ~/Library/Mail.app/V2/MailData/Signatures/
  5. You'll find there a file with random digits such as: 4E725456-58C1-4FD7-8490-3048F994CC33.webarchive
  6. Open that file in Safari, use View Source or Inspect to get the HTML content
  7. Create a new file using your preferred editor, I used nano, and paste the html
  8. Look for 'font-size = medium' and change it to the size you want, i changed it to 12px to match my Tahoma 12px mail font
  9. (Optional) if you want to embed an image, call it using <img> to a remote, public location and remove all <object> </object>
  10. Save the file as .html
  11. Open that .html file in safari and save as .webarchive
  12. cp the .webarchive you created to the location of the original .webarchive file while keeping the correct name (replace it)
  13. Open Mail.app and check that the signature is the way you want it...

Solution 2:

In Mountain Lion OS X 10.8 and Mail 6.x,

  1. Using Terminal, execute open ~/Library/Mail/V2/MailData/Signatures/
  2. Your signature will be in a file named something like 4E725456-58C1-4FD7-8490-3048F994CC33.mailsignature
  3. Right-click on this file and select Open With... -> Other... and choose TextEdit
  4. Look for 'font-size = medium' and remove it to use the same font as your message, then save the file.
  5. Select the file in the Finder and select File -> Get Info, then check Locked to ensure the file doesn't get overwritten by Mail.

Thanks to Haytham for the original solution on older versions of OS X.

Solution 3:

If your mail is composed in plain text and the font in the signature is smaller than the mail default font you will lose control of font sizes when sending.

Also try changing your message fonts and signature fonts to several other common fonts (Helvetica, Times New Roman) to eliminate a font substitution problem.

Feel free to add a comment or edit the question to add some more detail on whether all mail clients show the sizes wrong, just on the web, or just in a certain mail client.

Solution 4:

Just a reminder for those who don't see this embedded in the other great answers:

Mail 6.2 (Mountain Lion), when it launches, rewrites the signatures. It appears, though, that if you:

  1. Quit Mail
  2. Make the changes outlined by emmby
  3. Lock the files via the Get Info pane in Finder

before launching Mail again, your changes will be preserved as Mail cannot rewrite the .mailsignature file

Now - if you run your mail on multiple systems and the signatures sync, you will need to do the edit and lock on each system. Fortunately the filenames seem to stay the same across systems, so I just make sure that Mail is not running anywhere, copy my cleansed files to the new system and lock the files before launching Mail again.