Cache fonts in the XAP_Preview_FontPreview class, so the system is not queried for a font you already have a ref to.
For example: Open the Format -> Fonts dialog and start dragging the color chooser around. Every change (there are a LOT) results in a lookup of the font which is not changed at all. In fact, there are so many lookups done that AbiWord becomes unusable for quite some time. Furthermore, remove the redrawing of the border in the XAP_Preview_FontPreview class. CVS: ---------------------------------------------------------------------- CVS: Enter Log. Lines beginning with `CVS:' are removed automatically CVS: CVS: Committing in . CVS: CVS: Modified Files: CVS: xap_Dlg_FontChooser.cpp xap_Dlg_FontChooser.h CVS: --------------------------------------------------------------------- -- j.m.maurer <[EMAIL PROTECTED]>