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

Google mail doesnt display fonts correctly #2612

Closed
PieterUyz opened this issue Dec 28, 2022 · 3 comments
Closed

Google mail doesnt display fonts correctly #2612

PieterUyz opened this issue Dec 28, 2022 · 3 comments

Comments

@PieterUyz
Copy link

PieterUyz commented Dec 28, 2022

Describe the bug
A clear and concise description of what the bug is.

Gmail doenst display Outfit font family with mjml -> https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900

Is there a list of supported fonts or is there a a way to make the above font supported ?

To Reproduce

 <mjml>
    <mj-head>
      <mj-font name="Outfit" href="https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900" />
    </mj-head>
    <mj-body background-color="#F4F8FB">
      <mj-section>
        <mj-column background-color="#F4F8FB">
          <mj-image width="300px" src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Test-Logo.svg/783px-Test-Logo.svg.png"></mj-image>
        </mj-column>
      </mj-section>
      <mj-section background-color="#FFFFFF">
        <mj-column>
          <mj-text font-family="Outfit, Ubuntu" font-size="24px" font-weight="500"  line-height="34px">
            Forgotten your password ?
          </mj-text>
        </mj-column>
      </mj-section>
      <mj-section background-color="#FFFFFF">
        <mj-column>
          <mj-text font-size="16px" line-height="24px" font-family="Outfit, Ubuntu" font-weight="300">We have recieved your reset password request, please click on the "Change password" button below, make sure to have a look at the following rules</mj-text>
          <mj-text font-size="16px" line-height="24px"  font-family="Outfit, Ubuntu" font-weight="300">
            Your new password must include:</mj-text>
          <mj-text font-size="16px"  line-height="24px"  font-family="Outfit, Ubuntu" font-weight="300">
            <li>10 - 46 characters</li>
            <li>At least 2 mixed-case letter</li>
            <li>At least 3 number</li>
          </mj-text>
          <mj-text css-class font-size="16px"  font-family="Outfit, Ubuntu" font-weight="300">
            If you did not initiate this password reset, please contact us.</mj-text>
        </mj-column>
      </mj-section>
      <mj-section background-color="#FFFFFF">
        <mj-column>
          <mj-text font-family="Outfit, Ubuntu" font-size="16px"  font-weight="300">
            Thanks,
          </mj-text>
          <mj-text font-family="Outfit, Ubuntu" font-size="16px"  font-weight="300">
            The <span style="font-weight: 600">Test Team</span>
          </mj-text>
        </mj-column>
      </mj-section>
      <mj-section background-color="#FFFFFF">
        <mj-column>
          <mj-button background-color="#da2028" font-family="Outfit, Ubuntu" width="100%" border-radius="4px" height="50px" font-size="18px" href="/">Change Password</mj-button>
        </mj-column>
      </mj-section>
      <mj-section background-color="black">
        <mj-column width="25%">
          <mj-button height="15px" font-family="Outfit, Ubuntu" background-color="black" href="/" padding="0">Privacy Policy</mj-button>
        </mj-column>
        <mj-column width="50%">
          <mj-button height="15px" font-family="Outfit, Ubuntu" background-color="black" href="/" padding="0">© Copyright 2022 Test</mj-button>
        </mj-column>
      </mj-section>
    </mj-body>
  </mjml>

Expected behavior
Should display fonts in gmail

MJML environment (please complete the following information):

Email sending environment(for rendering issues):

  • Gmail

Affected email clients (for rendering issues):

  • Email Client: Gmail
  • OS: Windows & Mac
  • Browser: Firefox, Safari, Chrome

Additional context
Works perfectly everywhere else but not in Gmail (Google mail in browser)

@iRyusa
Copy link
Member

iRyusa commented Dec 28, 2022 via email

@PieterUyz
Copy link
Author

PieterUyz commented Dec 28, 2022

So do I need to download the fonts from google fonts and add it inside my mjml template @iRyusa ? I am using google fonts as said that mjml supports google fonts ?

@iRyusa
Copy link
Member

iRyusa commented Dec 28, 2022 via email

@iRyusa iRyusa closed this as completed Feb 8, 2023
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

2 participants