IonicWind Software

IWBasic => General Questions => Topic started by: King64 on December 26, 2009, 10:33:03 AM

Title: Question about COPYFILE function
Post by: King64 on December 26, 2009, 10:33:03 AM
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 ? :)
Title: Re: Question about COPYFILE function
Post by: ZeroDog on December 26, 2009, 12:26:08 PM
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)
Title: Re: Question about COPYFILE function
Post by: King64 on December 26, 2009, 05:13:21 PM
Thank you ZeroDog, now it works fine !  :)