Summary: | Openbox 3.3-rc1-r1 pango weirdness | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tobias Klausmann (RETIRED) <klausman> |
Component: | New packages | Assignee: | Commonbox Team <commonbox> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | lostlogic |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Workaround for huge fonts in Openbox+Pango |
Description
Tobias Klausmann (RETIRED)
![]() Confirmed here. And the worse is that pango miscalculates fontsizes... Spider noticed that ("...btw. openbox+pango, broken configure check, and the pango code miscalculates fontsizes to pixels.. bleh." -- http://darkmere.wanfear.com/blog/ ) Fixed in CVS. Agh! You didn't have to kill pango support. It can be fixed in font.c: ------------------------------------------------------ g_object_unref(context); return result; */ - return f->xftfont->ascent + f->xftfont->descent + - (f->shadow ? f->offset : 0); + gint x, y; + font_measure_full(f, " ", &x, &y); + return y; #endif /* USE_PANGO */ } I didn't kill pango support afaics -- I just made it act like it was supposed to -- on with USE="pango" and off w/o. If you make that a proper patch and reopen this bug with it attached, I can maek another revision with it. Created attachment 60982 [details, diff] Workaround for huge fonts in Openbox+Pango Here's a workaround for the problem with the fonts. It multiplies the font size (which is the product of pixelsize*PANGO_SCALE) by 0.72 (72dpi). I don't know the right way to do this, as I'm no programmer. This post [1] helped me a lot. [1] http://mail.gnome.org/archives/gtk-i18n-list/2004-August/msg00029.html |