getBaseFont: Return the workbook default font

Description Usage Arguments Author(s) Examples

View source: R/wrappers.R

Description

Return the workbook default font

Returns the base font used in the workbook.

Usage

1

Arguments

wb

A workbook object

Author(s)

Alexander Walker

Examples

1
2
3
4
5
6
7
8
## create a workbook
wb <- createWorkbook()
getBaseFont(wb)

## modify base font to size 10 Arial Narrow in red
modifyBaseFont(wb, fontSize = 10, fontColour = "#FF0000", fontName = "Arial Narrow")

getBaseFont(wb)

Example output

$size
$size$val
[1] "11"


$colour
$colour$rgb
[1] "FF000000"


$name
$name$val
[1] "Calibri"


$size
$size$val
[1] "10"


$colour
$colour$rgb
[1] "FFFF0000"


$name
$name$val
[1] "Arial Narrow"

openxlsx documentation built on May 30, 2017, 5:37 a.m.