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,
vertical.align = "baseline",
shading.color = "transparent"
)
font color - a single character value specifying a valid color (e.g. "#000000" or "black").
font size (in point) - 0 or positive integer value.
is bold
is italic
is underlined
single character value specifying font name.
single character value specifying font vertical alignments.
Expected value is one of the following : default 'baseline'
or 'subscript'
or 'superscript'
shading color - a single character value specifying a valid color (e.g. "#000000" or "black").
Other functions for defining formatting properties:
fp_border_default()
# NOT RUN {
fp_text_default(bold = TRUE)
# }
Run the code above in your browser using DataLab