summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2005-09-01 15:34:03 +0000
committerMikael Magnusson <mikachu@comhem.se>2005-09-01 15:34:03 +0000
commitefcb68de1d1bd5e776d2b9feb5e49d268b0450d8 (patch)
treefcc90dee815a42785cb02ed83f094b9ca2cc3fc8
parente298cde9b010a51f026886c6aaa93fe1cd22250e (diff)
and tidy it up a bit
-rw-r--r--render/font.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/render/font.c b/render/font.c
index ee8ca4a3..f46bb660 100644
--- a/render/font.c
+++ b/render/font.c
@@ -406,11 +406,10 @@ void RrFontDraw(XftDraw *d, RrTextureText *t, RrRect *area)
t->font->xftfont->ascent + y,
(FcChar8*)text->str, l);
#else /* USE_PANGO */
- /* layout_line() bases y on the baseline, while
- * layout() bases y on the top of the ink layout.
- * We want the baseline to always be in the same place, thusly, we use
- * layout_line()
- * The actual line doesn't need to be freed */
+ /* layout_line() bases y on the baseline, while layout() bases y on the
+ * top of the ink layout. We want the baseline to always be in the same
+ * place, thusly, we use layout_line()
+ * The actual line doesn't need to be freed (per the pango docs) */
pango_xft_render_layout_line(d, &c, pango_layout_get_line(pl, 0),
x * PANGO_SCALE, y * PANGO_SCALE);
g_object_unref(pl);