font: Font

Description Usage Arguments Details See Also Examples

Description

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

Usage

1
2
3

Arguments

href

URL of the font.

name

Name of the font.

Details

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

See Also

https://mjml.io/documentation/#mjml-font, https://fonts.google.com/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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"
    )
  )
)

JohnCoene/mjml documentation built on March 19, 2018, 5:07 a.m.