R6 class defining font properties

## Public fields

size

numeric defining the size of font

color

character defining the color of font

fontFamily

character defining the family of font

fontFace

character defining the font face as defined in helper enum FontFaces.

angle

numeric defining the angle of font

align

character defining the alignment of font as defined in helper enum Alignments.

## Methods

### Method new()

Create a new Font object. Default font properties are defined directly in the object field, so NULL input is allowed will lead to default properties.

Fontnew( color = NULL, size = NULL, fontFamily = NULL, fontFace = NULL, angle = NULL, align = NULL ) #### Arguments color character defining the color of font size numeric defining the size of font fontFamily character defining the family of font fontFace character defining the font face as defined in helper enum FontFaces. angle numeric defining the angle of font align character defining the alignment of font as defined in helper enum Alignments. #### Returns A new Font object ### Method createPlotFont() Create a ggplot2::element_text directly convertible by ggplot2::theme. #### Usage FontcreatePlotFont(
size = NULL,
color = NULL,
fontFamily = NULL,
fontFace = NULL,
angle = NULL,
align = NULL
)

#### Arguments

size

numeric defining the size of font

color

character defining the color of font

fontFamily

character defining the family of font

fontFace

character defining the font face as defined in helper enum FontFaces.

angle

numeric defining the angle of font

align

character defining the alignment of font as defined in helper enum Alignments.

#### Returns

An element_text object.

### Method clone()

The objects of this class are cloneable with this method.

#### Usage

Font\$clone(deep = FALSE)

#### Arguments

deep

Whether to make a deep clone.