Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 95793

Summary: Openbox 3.3-rc1-r2 pango font workaround
Product: Gentoo Linux Reporter: Ricardo Martins <meqif>
Component: Current packagesAssignee: Commonbox Team <commonbox>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Workaround for huge fonts in Openbox+Pango

Description Ricardo Martins 2005-06-11 11:13:38 UTC
Openbox 3.3-rc1 has a problem rendering fonts when compiled with pango support
(the fonts in titlebars and in menus (root menu and window menu) are too big).
After some research I came up with a simple workaround which works for me.

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

Reproducible: Always
Steps to Reproduce:
1. Emerge openbox-3.3-rc1-r2
2. Start openbox
3. Open a program or right-click to get the root-menu

Actual Results:  
The fonts in titlebars and in menus (root menu and window menu) are bigger than
expected: i.e. I specify the fontsize as 8 but fonts look like they are 14.

Expected Results:  
Fonts should be the expected size.
Comment 1 Ricardo Martins 2005-06-11 11:15:06 UTC
Created attachment 61067 [details, diff]
Workaround for huge fonts in Openbox+Pango

Here's the patch. I'd be grateful if someone improved it. :)
Comment 2 Aaron Kulbe (RETIRED) gentoo-dev 2005-07-25 12:15:16 UTC
This patch won't work, as it will lock users in to a static DPI setting.