Using COPYFILE function to copy my own font from a folder to fonts folder, i noticed that when try to use my font i can't visualize it correctly. So i have to put an idle loop for synchronization after COPYFILE function. I suppose that windows starts a thread to make the job. Is there a way, different from idle loop, to check when my own font is effectively available ? :)
Instead of using the COPYFILE function, why not try using the AddFontResource API function in gdi32.dll .
Some details on using it here (http://allapi.mentalis.org/apilist/AddFontResource.shtml)
Thank you ZeroDog, now it works fine ! :)