textProperties
Text formatting properties
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", shading.color)
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.
- font.weight
single character value specifying font weight (expected value is
normal
orbold
).- font.style
single character value specifying font style (expected value is
normal
oritalic
).- 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'
- shading.color
shading color - a single character value specifying a valid color (e.g. "#000000" or "black").
Details
Default values are:
color
"black"font.size
getOption("ReporteRs-fontsize")font.weight
"normal"font.style
"normal"underlined
FALSEfont.family
getOption("ReporteRs-default-font")vertical.align
"baseline"
Value
a textProperties
object
See Also
Examples
# NOT RUN {
#START_TAG_TEST
textProperties( font.size = 12 )
textProperties(color="red",
font.weight = "bold",
font.style = "italic",
underlined = TRUE,
font.family = "Courier New"
)
textProperties( shading.color = "red" )
#STOP_TAG_TEST
# }