This tag allows you to import fonts if used in your MJML document.

mj_font(href, name)

mj_font_google(name)

Arguments

href

URL of the font.

name

Name of the font.

Details

Use mj_font_google for https://fonts.google.com/.

See also

Examples

mj_ml( mj_head( mj_font( href = "https://fonts.googleapis.com/css?family=Raleway", name = "Raleway" ) ), mj_body( mj_text( `font-family` = "Raleway, Arial", "Blue text" ) ) )
#> <mjml> #> <mj-head> #> <mj-font href="https://fonts.googleapis.com/css?family=Raleway" name="Raleway"></mj-font> #> </mj-head> #> <mj-body> #> <mj-text font-family="Raleway, Arial">Blue text</mj-text> #> </mj-body> #> </mjml>