summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-04-03 09:36:19 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-04-03 09:36:19 -0400
commitb83e3ba78ea3466c001b465e9f0620c7ef5d7a5a (patch)
treed1fccbfb64b873d418ab91645465585ebceb6e38
parentcc598c9b7ff1fe1ae5bc58bc73963bad20b3911d (diff)
downloadpango-b83e3ba78ea3466c001b465e9f0620c7ef5d7a5a.tar.gz
docs: Add some details
Mainly for my own education.
-rw-r--r--pango/pango-renderer.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c
index 2d676782..8f3c9846 100644
--- a/pango/pango-renderer.c
+++ b/pango/pango-renderer.c
@@ -157,6 +157,9 @@ pango_renderer_finalize (GObject *gobject)
*
* Draws @layout with the specified `PangoRenderer`.
*
+ * This is equivalent to drawing the lines of the layout, at their
+ * respective positions relative to @x, @y.
+ *
* Since: 1.8
*/
void
@@ -558,6 +561,10 @@ draw_shaped_glyphs (PangoRenderer *renderer,
*
* Draws @line with the specified `PangoRenderer`.
*
+ * This draws the glyph items that make up the line, as well as
+ * shapes, backgrounds and lines that are specified by the attributes
+ * of those items.
+ *
* Since: 1.8
*/
void
@@ -807,6 +814,11 @@ pango_renderer_default_draw_glyphs (PangoRenderer *renderer,
*
* This is useful for rendering text in PDF.
*
+ * Note that this method does not handle attributes in @glyph_item.
+ * If you want colors, shapes and lines handled automatically according
+ * to those attributes, you need to use pango_renderer_draw_layout_line()
+ * or pango_renderer_draw_layout().
+ *
* Note that @text is the start of the text for layout, which is then
* indexed by `glyph_item->item->offset`.
*