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

Tomas

Reply via email to