X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Ffont.c;h=f46bb660cdb2b7aded0da3be6c9589dda71598dc;hb=b287b126ccebe8f65b90cba8191b720fdb901d49;hp=141ce80754158f99cd30170bcbcb127cf5ca6105;hpb=3b83230aafd70dafc97fe1a148873a948044ed9c;p=chaz%2Fopenbox diff --git a/render/font.c b/render/font.c index 141ce807..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 */ - /* This looks retarded, but layout_line() bases y on the baseline, while - * layout() bases y on the top of the ink layout shit ass fucking crap. - * 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);