Learn R Programming

ggiraph (version 0.8.2)

validated_fonts: List of validated default fonts

Description

Validates and possibly modifies the fonts to be used as default value in a graphic according to the fonts available on the machine. It process elements named "sans", "serif", "mono" and "symbol".

Usage

validated_fonts(fonts = list())

Value

a named list of validated font family names

Arguments

fonts

Named list of font names to be aliased with fonts installed on your system. If unspecified, the R default families "sans", "serif", "mono" and "symbol" are aliased to the family returned by match_family().

If fonts are available, the default mapping will use these values:

R familyFont on WindowsFont on UnixFont on Mac OS
sansArialDejaVu SansHelvetica
serifTimes New RomanDejaVu serifTimes
monoCourierDejaVu monoCourier
symbolSymbolDejaVu SansSymbol

See Also

girafe(), dsvg()

Other functions for font management: font_family_exists(), match_family()

Examples

Run this code
validated_fonts()

Run the code above in your browser using DataLab