From kde-core-devel Wed Jul 25 08:44:53 2001 From: Lars Knoll Date: Wed, 25 Jul 2001 08:44:53 +0000 To: kde-core-devel Subject: Re: KFontCombo speed X-MARC-Message: https://marc.info/?l=kde-core-devel&m=99605090430857 Hi, there is also another problem with this kind of font combobox. I have some thai fonts here, that do _not_ have latin1 characters. The font combobox just displays nothing there. Showing the look of the fonts in the combo is a great idea, but it's unuseable for some cases (and very slow for xlfd based fonts). If people use unicode based fonts it would mean an up to 20 seconds xserver freezing for some fonts. For slow network connections every unicode based font amounts to 720k of data transferred over the wire. Regards, Lars On Tuesday 24 July 2001 16:53, Rik Hemsley wrote: > One thing I think should be fixed before 2.2 is KFontCombo. It feels > sluggish even with a very small number of fonts. I reduced my font > count from 550 to 20 and it's still slow. > > I thought perhaps we could keep an on-disk store of font preview > images, which is created/updated at KDE startup, but I don't think > this is feasible. > > The cache would have to store pixmaps for every possible point size, > in every combination of bold, italic, underline and strikeout, and > it would have to hold > 1 bit depth images which would be painted > using alpha values. Ugh. > > Anyone have an idea how to work around the sluggishness ? > > Rik