Logo Search packages:      
Sourcecode: paps version File versions  Download package

gchar* paps_layout_line_to_postscript_strdup ( paps_t paps,
double  pos_x,
double  pos_y,
PangoLayoutLine *  layout_line 
)

Create postscript related to a single PangoLayout line at position pos_x, pos_y (postscript coordinates). The related font definitions are stored internally and will be returned when doing paps_get_postscript_header_strdup.

Parameters:
papsPaps object
pos_xx-position
pos_yy-position
layout_lineLayout line to render
Returns:

Definition at line 224 of file libpaps.c.

{
  paps_private_t *paps = (paps_private_t*)paps_;
  GString *layout_str = g_string_new("");
  gchar *ret_str;

  add_line_to_postscript(paps,
                   layout_str,
                   pos_x,
                   pos_y,
                   layout_line);

  ret_str = layout_str->str;
  g_string_free(layout_str, FALSE);

  return ret_str;
}

Generated by  Doxygen 1.6.0   Back to index