-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [core-devel: we're talking about a bug in the profile management of=20 KMail's configuredialog, where only some fonts get applied and others=20 don't. It turned out to be the problem of how to feed a "default font",=20 read from a config file, into KFontChooser without risking=20 KFontChooser's not applying it when it doesn't find it in it's family=20 listbox] On Sunday 02 December 2001 02:13, Marc Mutz wrote: > The profile management works _in principle_, ie. it applies some=20 > options, but doesn't apply others. I currently don't know whether=20 > that comes from the handwritten config files in kmail/profile or from > individual installprofile(KConfig*) methods or from a dialog-global > bug. At least the checkboxes and _some_ fonts (all but body and quote > fonts) are applied. OK. I tracked it down: 1. I wrote "Helvetica," into the config files. 2. They're correctly read as you can see from the debug output and thus=20 they make their way into mFont[]. 3. BUT: When calling KFontChooser::setFont(), KFontChooser searches it's=20 family listbox for the string selFont.family(). Here, it doesn't=20 contain "Helvetica", only "Helvetica Narrow" "Helvetica [Adobe]" "Helvetica [Mdk]" "Helvetica [Urw]" So the font isn't changed in the fontchooser. Two things: 1. one could introduce another pass of over the list box, this time with=20 =2Efind() or .startsWith(), but for me this would select "Helvetica=20 Narrow", which isn't exactly what I'd call Helvetiva... But still this only solves part of the problem, whose core is: 2. How does one write a "default font" into a config file, ie. one that=20 is guaranteed to be available on all platforms? Marc - --=20 If this were a dictatorship, it'd be a heck of a lot easier...just as long as I'm the dictator... - -- George W. Bush, Washington, DC, Dec 18, 2000, during his first trip to Washington as President-Elect -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8CojV3oWD+L2/6DgRAtUJAKDnzul5IIx6Wt/t3cOikKeeS2xdLwCfXjN8 rLd+cwf2y0hK8ZkM2z2Oq6A=3D =3DGmh4 -----END PGP SIGNATURE-----