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.
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.
Most helpful comment
Hi @oliviertassinari
You can just override every
font-familyinmj-attributeswithmj-allit will disable the import.Ex: https://mjml.io/try-it-live/r1eZJxNNb