CairoFonts               package:Cairo               R Documentation

_S_e_t _t_h_e _f_o_n_t_s _u_s_e_d _f_o_r _a_l_l _C_a_i_r_o _g_r_a_p_h_i_c_s _d_e_v_i_c_e_s.

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

     'CairoFonts' initializes the fonts used for Cairo graphics
     devices.

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

     CairoFonts(
             regular="Helvetica:style=Regular",
             bold="Helvetica:style=Bold",
             italic="Helvetica:style=Italic",
             bolditalic="Helvetica:style=Bold Italic,BoldItalic",
             symbol="Symbol"
     )

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

 regular: character; fontconfig pattern for the 'plain text' font.

    bold: character; fontconfig pattern for the 'bold face' font.

  italic: character; fontconfig pattern for the 'italic' font.

bolditalic: character; fontconfig pattern for the 'bold italic' font.

  symbol: character; fontconfig pattern for the 'symbol' font.

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

     This function sets the fonts for Cairo graphics devices globally;
     previously opened Cairo graphics devices will also use these
     fonts. The argument names correspond to  the five values of the
     graphical parameter 'font', i.e. regular is 1, bold is 2, italic 
     is 3, etc.

     For an explanation of fontconfig patterns, see 'CairoFontMatch'.

_K_n_o_w_n _i_s_s_u_e_s:


        *  This function is only available when the cairo graphics
           library is configured with FreeType and Fontcofig support.

        *  R math symbols are supported,but require a "Symbol" font
           with the Adobe symbol encoding. At the time of this release
           the authors are unaware of a free version of this font,
           however they do exist on Windows and Mac OS X.

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

     'CairoFontMatch', 'Cairo', 'par',

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

     ## Not run: 
     #
     # The following fontconfig patterns define the free truetype fonts 
     # available in the debian package 'ttf-freefont'.
     # 
     # Freesans is very similar to Helvetica
     CairoFonts(
             regular="FreeSans:style=Medium",
             bold="FreeSans:style=Bold",
             italic="FreeSans:style=Oblique",
             bolditalic="FreeSans:style=BoldOblique"
     )
     ## End(Not run)

