Create a fp_text() object that uses defaut values defined in flextable defaults formatting properties, i.e. default font color, font size and font family (see set_flextable_defaults()). (see set_flextable_defaults()).

fp_text_default(
  color = flextable_global$defaults$font.color,
  font.size = flextable_global$defaults$font.size,
  bold = FALSE,
  italic = FALSE,
  underlined = FALSE,
  font.family = flextable_global$defaults$font.family,
  cs.family = NULL,
  eastasia.family = NULL,
  hansi.family = NULL,
  vertical.align = "baseline",
  shading.color = "transparent"
)

Arguments

color

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

font.size

font size (in point) - 0 or positive integer value.

bold

is bold

italic

is italic

underlined

is underlined

font.family

single character value. Specifies the font to be used to format characters in the Unicode range (U+0000-U+007F).

cs.family

optional font to be used to format characters in a complex script Unicode range. For example, Arabic text might be displayed using the "Arial Unicode MS" font.

eastasia.family

optional font to be used to format characters in an East Asian Unicode range. For example, Japanese text might be displayed using the "MS Mincho" font.

hansi.family

optional. Specifies the font to be used to format characters in a Unicode range which does not fall into one of the other categories.

vertical.align

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

shading.color

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

See also

as_chunk()

Other functions for defining formatting properties: fp_border_default()

Examples

fp_text_default(bold = TRUE)
#>   size italic bold underlined color     shading    fontname fontname_cs
#> 1   11  FALSE TRUE      FALSE black transparent DejaVu Sans DejaVu Sans
#>   fontname_eastasia fontname.hansi vertical_align
#> 1       DejaVu Sans    DejaVu Sans       baseline