X11Fonts              package:grDevices              R Documentation

_X_1_1 _F_o_n_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     These functions handle the translation of a device-independent R
     graphics font family name to an X11 font description.

_U_s_a_g_e:

     X11Font(font)

     X11Fonts(...)      

_A_r_g_u_m_e_n_t_s:

    font: a character string containing an X11 font description.

     ...: either character strings naming mappings to display, or new
          (named) mappings to define.

_D_e_t_a_i_l_s:

     These functions apply only to an 'X11' device with 'type = "Xlib"'
     - 'X11(type = "Cairo"' uses a different mechanism to select fonts.

     Such a  device is created with a default font (see the
     documentation for 'X11'), but it is also possible to specify a
     font family when drawing to the device (for example, see the
     documentation for '"family"' in 'par' and for '"fontfamily"' in
     'gpar' in the 'grid' package).

     The font family sent to the device is a simple string name, which
     must be mapped to something more specific to X11 fonts.  A list of
     mappings is maintained and can be modified by the user.

     The 'X11Fonts' function can be used to list existing mappings and
     to define new mappings.  The 'X11Font' function can be used to
     create a new mapping.

     Default mappings are provided for three device-independent font
     family names: '"sans"' for a sans-serif font, '"serif"' for a
     serif font and '"mono"' for a monospaced font.

_S_e_e _A_l_s_o:

     'X11'

_E_x_a_m_p_l_e_s:

     X11Fonts()
     X11Fonts("mono")
     utopia <- X11Font("-*-utopia-*-*-*-*-*-*-*-*-*-*-*-*")
     X11Fonts(utopia=utopia)

