Mjml: How to disable Ubuntu font and it's references in email?

Created on 16 May 2016  路  5Comments  路  Source: mjmlio/mjml

For now, I'm deleting it's all references manually from HTML output, I think making a custom font as part of MJML by default is not a good idea. There should be an option to enable/disable it, it should be optional.

Discussion

Most helpful comment

Hi @oliviertassinari

You can just override every font-family in mj-attributes with mj-all it will disable the import.
Ex: https://mjml.io/try-it-live/r1eZJxNNb

All 5 comments

Hey !

See https://github.com/mjmlio/mjml/issues/216, you need change all mj-text, mj-list and mj-button with other font-family for remove Ubuntu import.

To follow-up on what @lohek said, also note that https://github.com/mjmlio/mjml/pull/249 will make it easier to override the default font with your favorite one.

Will end-up using the same solution as @jitendravyas to remove the generated link:

<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" rel="stylesheet" type="text/css">

Hi @oliviertassinari

You can just override every font-family in mj-attributes with mj-all it will disable the import.
Ex: https://mjml.io/try-it-live/r1eZJxNNb

My bad, I was trying to load two fonts at once with https://fonts.googleapis.com/. Needs to split them. Thanks.

Was this page helpful?
0 / 5 - 0 ratings