Home All Groups Group Topic Archive Search About

Where can I get a list of the available fonts?

Author
22 Jul 2006 8:50 PM
Nathan Sokalski
I need to get a list of the available fonts as some type of collection or
array. How can I do this? Thanks.
--
Nathan Sokalski
njsokal***@hotmail.com
http://www.nathansokalski.com/

Author
23 Jul 2006 10:20 PM
Herfried K. Wagner [MVP]
"Nathan Sokalski" <njsokal***@hotmail.com> schrieb:
>I need to get a list of the available fonts as some type of collection or
>array. How can I do this?

Are you talking about Windows Forms or Web Forms?  Do you want to enumerate
fonts on the client or on the server?

\\\
Dim g As Graphics = Me.CreateGraphics()
.... = FontFamily.GetFamilies(g)
g.Dispose()
///

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
23 Jul 2006 10:24 PM
MyndPhlyp
"Nathan Sokalski" <njsokal***@hotmail.com> wrote in message
news:%239gBP3prGHA.3384@TK2MSFTNGP04.phx.gbl...
> I need to get a list of the available fonts as some type of collection or
> array. How can I do this? Thanks.

InstalledFontCollection()

See your installed Help for the article entitled "How to: Enumerate
Installed Fonts". If you have trouble locating it, use the Index and locate
"fonts" and then "enumerating installed" under that.

AddThis Social Bookmark Button