Font: Create a description of a font for Excel

View source: R/makeStyles.R

FontR Documentation

Create a description of a font for Excel

Description

This function and associated class allows us to create a descriptions of a font which we can then use to define a font object in an Excel document.

Usage

Font(..., obj = new("Font"))

Arguments

...

named values corresponding to any of the slots in the class Font. See slotNames("Font").

obj

the instance whose slots are to be filled. By allowing the caller to specify this, we can use this function to populate objects of a sub-class.

Value

obj with the relevant slots set.

Author(s)

Duncan Temple Lang

See Also

createStyle getStyles getDocStyles

Examples


 f = Font(sz = 16L, face = c("b", "i"))
 f = Font(sz = 14L, face = c("b", "i"), name = "Times Roman")

duncantl/RExcelXML documentation built on Nov. 23, 2023, 4:21 p.m.