cybeh
asked on
How to detect if the font is a true type font by using VB.NET?
Hi,
We are trying to load all the true type font font name inside the user system into a combo box.
We manage to work until the code as below, but, may I know how can we check if the font is a true type font?
Please advice.
We are trying to load all the true type font font name inside the user system into a combo box.
We manage to work until the code as below, but, may I know how can we check if the font is a true type font?
Please advice.
For Each font As FontFamily In FontFamily.Families
If (font.IsStyleAvailable(FontStyle.Regular)) Then
' Do some code here
End If
Next font
ASKER
http://www.developerfusion.com/code/189/truetype-font/ <- this is design for VB but not VB.NET.
ASKER
http://aspalliance.com/318_Loading_a_true_type_font_with_GDI <- this is just loading True Type Font, but it's not checking if the input font is a valid true type font or not.
Thanks.
Thanks.
sorry for that, i hope you might get some hints from those urls so i suggested.
ASKER
It's okay. Just that I tried that VB6 solution before and trying to convert to .NET, but no luck.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
here there is a code for you
http://www.developerfusion.com/code/189/truetype-font/
http://aspalliance.com/318_Loading_a_true_type_font_with_GDI