These functions handle the translation of a device-independent R graphics font family name to a quartz font description.
1 2 3
a character vector containing the four PostScript font names for plain, bold, italic, and bolditalic versions of a font family.
either character strings naming mappings to display, or new (named) mappings to define.
A quartz device is created with a default font (see
the documentation for
quartz), but it is also possible
to specify a font family when drawing to the device
(for example, see the documentation for
gpar in the
The font family sent to the device is a simple string name, which must be mapped to something more specific to quartz fonts. A list of mappings is maintained and can be modified by the user.
quartzFonts function can be used to list existing
mappings and to define new mappings. The
function can be used to create a new mapping.
Default mappings are provided for three device-independent font family
"sans" for a sans-serif font,
"serif" for a serif
"mono" for a monospaced font.
1 2 3 4 5 6 7 8 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.