Sign in to follow this  
Followers 0
Yraen

Finding the charset of a font?

3 posts in this topic

Hello,

I've searched here and google but I don't seem to be able to find a way to get the charset of a font the user selects. I need to pass the charset of the selected font to another programs command line. Anyone have any tips?

Share this post


Link to post
Share on other sites



Maybe a little more detail will help. I'm using _ChooseFont to allow the user to change the font, passed to another program through a command-line argument, and this program wants to know the charset of the font. Right now I'm just passing DEFAULT_CHARSET and hoping it works for every possible font. I would like to be able to pass the right charset though. Any tips anyone?

Share this post


Link to post
Share on other sites

Maybe a little more detail will help. I'm using _ChooseFont to allow the user to change the font, passed to another program through a command-line argument, and this program wants to know the charset of the font. Right now I'm just passing DEFAULT_CHARSET and hoping it works for every possible font. I would like to be able to pass the right charset though. Any tips anyone?

You may be able to use COM objects to analyze the properties of a font and return the charset. I did some Googling and didn't find much... If you are unfamiliar with COM objects, there is a bit of information in the help file; however, searching for COM objects on the forums is probably going to yield more examples.


Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0