commit: caching win32 font info

From: Tomas Frydrych (
Date: Wed Jul 31 2002 - 17:42:04 EDT

  • Next message: Tomas Frydrych: "Re: CRASH BUGS"

    I have made a small change to the GR_Font class that makes it
    possible to determine quickly if fonts pointed to by two GR_Font* are
    identical by comparing allocation numbers. While this does not,
    obviously, catch all cases of identical fonts, it does make it possible
    to significantly reduce the massive number of calls to win32
    SelectFontIntoDC() (to load a 45 page document that only uses Arial
    and Times New Roman of two or three different sizes each, we used
    to make over 1,000,000 calls to this function!).

    files: gr_Graphics.h/cpp, gr_Win32Graphics.cpp


    This archive was generated by hypermail 2.1.4 : Wed Jul 31 2002 - 17:51:26 EDT