[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 190050] New: Make it possible to set the font of the axis
From:       Job Noorman <jobnoorman () gmail ! com>
Date:       2009-04-19 10:28:17
Message-ID: bug-190050-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=190050

           Summary: Make it possible to set the font of the axis labels in
                    a KPlotWidget
           Product: kst
           Version: unspecified
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: plotting
        AssignedTo: kst@kde.org
        ReportedBy: jobnoorman@gmail.com


Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

I would like to be able to chose the font that is used to draw the labels of
axes in a KPlotWidget. ATM, the font is really small and I can't find a way to
change this.

I found the following code in KPlotWidget::drawAxes:

00715     //set small font for tick labels
00716     QFont f = p->font();
00717     int s = f.pointSize();
00718     f.setPointSize( s - 2 );
00719     p->setFont( f );

So the font size is decreased to draw the tick labels but after this, it is
never increased again to draw the axis labels. Is this a bug?

Cheers!
Job

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic