font_spec | R Documentation |
Font size specification
font_spec(font_family = "Courier", font_size = 8, lineheight = 1)
font_family |
( |
font_size |
( |
lineheight |
( |
Passing the output of this constructor to the rendering or pagination machinery defines a font for use when calculating word wrapping and pagination.
Specifying font in this way to, e.g., export_as_txt()
or
toString()
will not affect the font size of the output, as these
are both raw text formats. export_as_pdf()
will use the specified font.
nchar_ttype()
, toString()
, pagination_algo
, export_as_pdf()
fspec <- font_spec("Courier", 8, 1)
lets <- paste(letters, collapse = "")
nchar_ttype(lets, fspec)
fspec2 <- font_spec("Times", 8, 1)
nchar_ttype(lets, fspec2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.