Commit (HEAD): Cache fonts in XAP_Preview_FontPreview

From: j.m.maurer (j.m.maurer@student.utwente.nl)
Date: Thu Nov 14 2002 - 12:37:55 EST

  • Next message: Dom Lachowicz: "Commit: make hidden text work again"

    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 <j.m.maurer@student.utwente.nl>
    


    This archive was generated by hypermail 2.1.4 : Thu Nov 14 2002 - 12:44:31 EST