[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.drawing

Need Font name not Typeface name

(Remy Samulski)

12/22/2004 7:26:00 AM

Dear Readers,

I need to retrieve the font name of a TTF file. When I use the
following code I retrieve the Typeface name but not the name I see on
the top of the preview screen when I doubleclick the TTF file. Does
anyone know how I can retrieve that name?

Dim _PrivateFontCollection As New
System.Drawing.Text.PrivateFontCollection
_PrivateFontCollection.AddFontFile("C:\MyFont.TTF")
Dim FontName as String
FontName = _PrivateFontCollection.Families(Index).Name
Many thanks,
Rémy Samulski