Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95793 - Openbox 3.3-rc1-r2 pango font workaround
Summary: Openbox 3.3-rc1-r2 pango font workaround
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal
Assignee: Commonbox Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-11 11:13 UTC by Ricardo Martins
Modified: 2005-07-25 12:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Workaround for huge fonts in Openbox+Pango (pango-font-fix.patch,492 bytes, patch)
2005-06-11 11:15 UTC, Ricardo Martins
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.