cairo-Text               package:RGtk2               R Documentation

_T_e_x_t

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

     Rendering text and glyphs

_M_e_t_h_o_d_s _a_n_d _F_u_n_c_t_i_o_n_s:

     'cairoSelectFontFace(cr, family, slant, weight)'
      'cairoSetFontSize(cr, size)'
      'cairoSetFontMatrix(cr, matrix)'
      'cairoGetFontMatrix(cr, matrix)'
      'cairoSetFontOptions(cr, options)'
      'cairoGetFontOptions(cr)'
      'cairoSetFontFace(cr, font.face)'
      'cairoGetFontFace(cr)'
      'cairoSetScaledFont(cr, scaled.font)'
      'cairoGetScaledFont(cr)'
      'cairoShowText(cr, utf8)'
      'cairoShowGlyphs(cr, glyphs, num.glyphs)'
      'cairoFontExtents(cr)'
      'cairoTextExtents(cr, utf8)'
      'cairoGlyphExtents(cr, glyphs)'

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

     Cairo has two sets of text rendering capabilities:

        * 

        *  .in -3 

_S_t_r_u_c_t_u_r_e_s:


     '_C_a_i_r_o_G_l_y_p_h' The 'CairoGlyph' structure holds information about a
          single glyph when drawing or measuring text. A font is (in
          simple terms) a collection of shapes used to draw text. A
          glyph is one of these shapes. There can be multiple glyphs
          for a single character (alternates to be used in different
          contexts, for example), or a glyph can be a ligature of
          multiple characters. Cairo doesn't expose any way of
          converting input text into glyphs, so in order to use the
          Cairo interfaces that take arrays of glyphs, you must
          directly access the appropriate underlying font system.

          Note that the offsets given by 'x' and 'y' are not
          cumulative. When drawing or measuring text, each glyph is
          individually positioned with respect to the overall origin  
          *'CairoGlyph' is a transparent-type.*

          '_i_n_d_e_x' [numeric]  the offset in the X direction between the
               origin used for drawing or measuring the string and the
               origin of this glyph.

          '_x' [numeric]  the offset in the Y direction between the
               origin used for drawing or measuring the string and the
               origin of this glyph.

          '_y' [numeric] 


_E_n_u_m_s _a_n_d _F_l_a_g_s:


     '_C_a_i_r_o_F_o_n_t_S_l_a_n_t' Specifies variants of a font face based on their
          slant.  

          '_n_o_r_m_a_l' Upright font style

          '_i_t_a_l_i_c' Italic font style

          '_o_b_l_i_q_u_e' Oblique font style


     '_C_a_i_r_o_F_o_n_t_W_e_i_g_h_t' Specifies variants of a font face based on their
          weight.  

          '_n_o_r_m_a_l' Normal font weight

          '_b_o_l_d' Bold font weight


_A_u_t_h_o_r(_s):

     Derived by RGtkGen from GTK+ documentation

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.cairographics.org/manual/cairo-Text.html>

