ReporteRs (version 0.5.3)

textProperties: Text formatting properties

Description

Create a textProperties object that describes text formatting properties.

Usage

textProperties(color = "black", font.size = getOption("ReporteRs-fontsize"),
  font.weight = "normal", font.style = "normal", underlined = FALSE,
  font.family = getOption("ReporteRs-default-font"),
  vertical.align = "baseline")

Arguments

color

font color - a single character value specifying a valid color (e.g. "#000000" or "black").

font.size

font size - 0 or positive integer value.

font.weight

single character value specifying font weight (expected value is normal or bold).

font.style

single character value specifying font style (expected value is normal or italic).

underlined

single logical value specifying if the font is underlined.

font.family

single character value specifying font name (it has to be an existing font in the OS).

vertical.align

single character value specifying font vertical alignments. Expected value is one of the following : default 'baseline' or 'subscript' or 'superscript'

Value

a textProperties object

Details

Default values are:

  • color "black"

  • font.size getOption("ReporteRs-fontsize")

  • font.weight "normal"

  • font.style "normal"

  • underlined FALSE

  • font.family getOption("ReporteRs-default-font")

  • vertical.align "baseline"

See Also

cellProperties, parProperties , chprop.parProperties, chprop.textProperties , chprop.cellProperties , FlexTable, tableProperties, addTable , pot

Examples

Run this code
# NOT RUN {
#START_TAG_TEST
parProperties( text.align = "center", padding = 5)
parProperties( text.align = "center", padding.top = 5
, padding.bottom = 0, padding.left = 2, padding.right = 0)
#STOP_TAG_TEST
# }

Run the code above in your browser using DataCamp Workspace