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

List:       koffice-devel
Subject:    Re: KConfig (Was: small fonts confusing me..)
From:       Hans Meine <hans_meine () gmx ! net>
Date:       2001-09-19 13:20:22
[Download RAW message or body]

David Faure <david@mandrakesoft.com> writes:
> I initially thought we should simply save both.
> But Dirk suggested that we might want to save the QFontInfo instead,
> so that we save what the font really is. As he also pointed out, this would mean
> that the QFont object, which would initially contain the _requested_ size,
> would, after saving and reloading, contain the _real_ size instead. But I don't
> think this is really a problem.
> 
> At least, by saving the QFontInfo data, we can still save only the pointSize,
> though this means that we'll request the pointSize upon loading, even
> if the pixelsize was initially requested (which might make a difference 
> if the resolution has changed meanwhile ?).
> The advantage is that we wouldn't have to modify the format of the
> font entries in kconfig files, that's what I mean here.

Does the rawName() also contain the _loaded_ font? I believe so,
otherwise (if it returns the requested one, with -*-*'s in it=) this
could be saved and upon loading, the leading "-" indicates if it loads
an entry of the new format.

-- 
Ciao,  /  /
      /--/
     /  / ANS                          .,* Hamburg, Germany *,.
_______________________________________________
Koffice-devel mailing list
Koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel

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

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