Description Usage Arguments Details Value See Also Examples
View source: R/textProperties.R
Create a textProperties
object that describes
text formatting properties.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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)
## S3 method for class 'textProperties'
print(x, ...)
## S3 method for class 'textProperties'
as.character(x, ...)
## S3 method for class 'textProperties'
chprop(object, color, font.size, font.weight,
font.style, underlined, font.family, vertical.align, shading.color, ...)
|
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 |
font.style |
single character value specifying font style
(expected value is |
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 |
shading.color |
shading color - a single character value specifying a valid color (e.g. "#000000" or "black"). |
x |
|
... |
further arguments - not used |
object |
|
Get a modified version of a textProperties
with
chprop
.
a textProperties
object
pot
, alterFlexTable
,
shortcut_properties
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | if( check_valid_java_version() ){
textProperties( font.size = 12 )
textProperties(color="red", font.weight = "bold",
font.style = "italic", underlined = TRUE )
textProperties( shading.color = "red" )
}
if( check_valid_java_version() ){
# chprop usage example ------
textProp <- textProperties()
chprop( textProp, color = "red" )
chprop( textProp, font.size = 12 )
chprop( textProp, font.weight = "bold" )
chprop( textProp, font.style = "italic" )
chprop( textProp, underlined = TRUE )
chprop( textProp, font.family = "Arial" )
chprop( textProp, vertical.align = "superscript" )
chprop( textProp, font.size = 12,
font.weight = "bold", shading.color = "red" )
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.