Bug 122819 - Tiny fontsize in palettes
Summary: Tiny fontsize in palettes
Status: RESOLVED FIXED
Alias: None
Product: koffice
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: KOffice Bug Wranglers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-28 01:18 UTC by Erik Johansson
Modified: 2009-08-11 15:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Limit the fontsize (582 bytes, patch)
2006-02-28 01:19 UTC, Erik Johansson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Johansson 2006-02-28 01:18:53 UTC
Version:           1.4.90.1-1 (using KDE KDE 3.5.1)
Installed from:    Debian testing/unstable Packages
OS:                Linux

The fontsize in palettes are too small when you are (as I am) using a general fontsize of 8. 

The fontsize is calculated as generalFont().pointSize() * 0.7 which in my case gives 5.6. And since this value is then casted to an int, the effective size is only 5. I would prefer too see some kind of limit, as in the attached patch.
Comment 1 Erik Johansson 2006-02-28 01:19:47 UTC
Created attachment 14905 [details]
Limit the fontsize
Comment 2 Halla Rempt 2006-02-28 20:01:09 UTC
I'm not sure that's correct: there may well still exist screens where 5 pts is preferable. It all depends on the dpi of your screen. I'll go and ponder about it some!
Comment 3 Jarosław Staniek 2006-02-28 20:53:51 UTC
I've already made some tests in this topic: Kexi property editor (and sidebar in general) has set minimal fonts already. Please take a look at:

QFont Kexi::smallFont(QWidget *init)

in koffice/kexi/core/kexi.cpp

The code depends on desktop geometry and pixel size, not on DPI, which is not always properly set. IMHO function like this can go to kofficeui or later to kdecore. 

Another issue: it's always safer to provide an app-wide "SmallFontSize" setting in the *rc file, for people that are not happy with defaults.

Comment 4 Halla Rempt 2006-03-01 08:51:59 UTC
On Tuesday 28 February 2006 20:53, Jaroslaw Staniek wrote:

> Another issue: it's always safer to provide an app-wide "SmallFontSize"
> setting in the *rc file, for people that are not happy with defaults.


There is one for Krita. People can set it in the first page of the settings 
dialog.
Comment 5 Verdi March 2006-04-12 05:51:32 UTC
As of Koffice 1.5, Krita and Karbon allows users to change
the pallete font-size through their setting.

In Krita, the change takes effect immediately after pressing
'ok' buttons in the setting dialog.

In Karbon, I need to quit and restart Karbon for the change
to take effect.

Unfortunately, Kivio does not provide such option.
Comment 6 Jonas Vejlin 2009-04-04 11:17:33 UTC
do you still have this bug?
Comment 7 Thomas Zander 2009-08-11 15:34:04 UTC
We fixed this in koffice2