Top | ![]() |
![]() |
![]() |
![]() |
PangoFontMap * | gnome_print_pango_font_map_new () |
PangoFontMap * | gnome_print_pango_get_default_font_map () |
PangoContext * | gnome_print_pango_create_context () |
void | gnome_print_pango_update_context () |
PangoLayout * | gnome_print_pango_create_layout () |
void | gnome_print_pango_glyph_string () |
void | gnome_print_pango_layout_line () |
void | gnome_print_pango_layout () |
void | gnome_print_pango_layout_print () |
PangoFontMap *
gnome_print_pango_font_map_new (void
);
Creates a new PangoFontMap object suitable for use with
gnome-print. In most cases, you probably want to use
gnome_print_pango_get_default_font_map()
instead.
PangoFontMap *
gnome_print_pango_get_default_font_map
(void
);
Gets a singleton PangoFontMap object suitable for use with gnome-print.
the default PangoFontMap object for gnome-print. The
returned object is owned by gnome-print and should not be modified.
(If you need to set custom options, create a new font map with
gnome_print_pango_font_map_new()
.) The reference count is
not increased.
PangoContext *
gnome_print_pango_create_context (PangoFontMap *fontmap
);
Creates a new PangoContext object for the specified fontmap.
fontmap |
a PangoFontMap from |
void gnome_print_pango_update_context (PangoContext *context
,GnomePrintContext *gpc
);
Update a context so that layout done with it reflects the
current state of gpc
. In general, every time you use a
PangoContext with a different GnomePrintContext, or
you change the transformation matrix of the GnomePrintContext
(other than pure translations) you should call this function.
You also need to call pango_layout_context_changed()
for any
PangoLayout objects that exit for the PangoContext.
This function currently does nothing and that isn't expected to change for gnome-print. The main benefit of calling it is that your code will be properly prepared for conversion to use with future rendering systems such as Cairo where the corresponding operation will actually do something.
PangoLayout *
gnome_print_pango_create_layout (GnomePrintContext *gpc
);
Convenience function that creates a new PangoContext, updates
it for rendering to gpc
, and then creates a PangoLayout for
that PangoContext. Generally this function suffices for
most usage of gnome-print with Pango and you don't need to
deal with the PangoContext directly.
void gnome_print_pango_glyph_string (GnomePrintContext *gpc
,PangoFont *font
,PangoGlyphString *glyphs
);
Draws the glyphs in glyphs
into the specified GnomePrintContext.
Positioning information in glyphs
is transformed by the current
transformation matrix, the glyphs are drawn in the current color,
and the glyphs are positioned so that the left edge of the baseline
is at the current point.
void gnome_print_pango_layout_line (GnomePrintContext *gpc
,PangoLayoutLine *line
);
Draws the text in line
into the specified GnomePrintContext. The
text is drawn in the current color unless that has been overridden
by attributes set on the layout and the glyphs are positioned so
that the left edge of the baseline is at the current point.
void gnome_print_pango_layout (GnomePrintContext *gpc
,PangoLayout *layout
);
Draws the text in layout
into the specified GnomePrintContext. The
text is drawn in the current color unless that has been overridden
by attributes set on the layout and the glyphs are positioned so
that the left edge of the baseline is at the current point.
void gnome_print_pango_layout_print (GnomePrintContext *gpc
,PangoLayout *pl
);
Draws the text in pl
into the specified GnomePrintContext. The
text is drawn in the current color unless that has been overridden
by attributes set on the layout and the glyphs are positioned so
that the left edge of the baseline is at the point (0, 0). This function
is obsolete; use gnome_print_pango_layout()
instead.