The Daily Click ::. Forums ::. Klik Coding Help ::. How to check if a user has a certain font installed in his computer?
 

Post Reply  Post Oekaki 
 

Posted By Message

Diefox

Possibly Insane

Registered
  23/02/2003
Points
  3481

VIP MemberGOTM -SEPTEMBER 2009 - 2nd place!GOTW WINNER APRIL 2010!
4th April, 2009 at 21:22:28 -

I'm making a game, and in the first frame I do a type of file test, to check if all the needed files like database and stuff are present using the appdrive and appfolder stuff, forgot the exact name of it right now. But I would also like to check if the user has a certain font in his computer too, is there anyway to do that by using $appdrive, $appwin, $appfont or stuff like that?

thanks in advance.

 
__________
amandapps.com

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
4th April, 2009 at 21:26:32 -

You can use the YASO object to get the Windows directory, I don't know if MMF2 has a built-in syntax for it. Anyway, use the file object to check to see if "font.ttf" exists in the windowsdir\fonts.

Syntax with the YASO object would be something like: GlobalWindowsFolder$( "YASO Object" )+"\fonts\font.ttf" give or take a few backslashes.

Edited by OMC

 

  		
  		
   

Post Reply



 



Advertisement

Worth A Click