I forgot to change the 'To' to grx :-)
-------- Original Message --------
Asunto: Re: Font drivers cleanup
Fecha: Tue, 13 Aug 2002 23:54:36 +0200
De: Mariano Alvarez Fernandez malfer@telefonica.net
A: jimmy@is-vn.bg
Referencias: QM71A6521W4B8A861YUA7IFKHA7YUZU.3d58c56b@jimmy
Dimitar Zhekov escribió:
Cleanup the font driver a successful font load.
By default, a font driver is cleaned up either after an unsuccessful
font load or on the next attempt to load a font with this driver;
any
open files or allocated memory are cleaned when exiting the program,
but I'm not sure about the X11 and Windows resources. Anyway, alwaus
cleaning up after a font load seems more proper to me than to wait
for
the next load or rely on the C library cleanup at exit.
I tracked down the calls to the driver functions and tested the
patch
with GrLoadFont() and GrBuildConvertedFont(). It seems to work, and
the input font file can now be open for writing, unlinked and so on,
but more testing is required.
I agree. I was puzzled why the need to left the file open, but the
cleanup into the
fileopen driver function doesn't hurt, so I propose apply only the
loadfont.c change,
and we doesn't break a posible user program that rely in this 'feature'
of the font
drivers. Ok?
Regards, M.Alvarez