|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Retrieving a list of available fonts on system.Hi,
How would I return a list of available fonts. I'm writing a simple word processor, and have got the font dialog working, but wanted to create a toolbar dropdown with a list of fonts in, instead. I'm not a 'hardened programmer' ;-) so any simple examples out there?? Thanks in antipation jonesG
Show quote
Hide quote
"Jonesgj" <a@b.com> wrote in message news:YeednZhQhY9ga9rZRVny1g@bt.com... VB2005 code:> Hi, > > > How would I return a list of available fonts. I'm writing a simple word > processor, and have got the font dialog working, but wanted to create a > toolbar dropdown with a list of fonts in, instead. > > I'm not a 'hardened programmer' ;-) so any simple examples out > there?? > > Thanks in antipation > > jonesG > For Each FNT In FontFamily.Families ComboBox1.Items.Add(FNT.Name) Next This will loop thru and display all of the Fonts on your system. But, not True Type Fonts. james "Jonesgj" <a@b.com> schrieb: \\\> How would I return a list of available fonts. I'm writing a simple word > processor, and have got the font dialog working, but wanted to create a > toolbar dropdown with a list of fonts in, instead. Imports System.Drawing .. .. .. For Each fntfam As FontFamily In FontFamily.Families Console.WriteLine(fntfam.Name) Next fntfam /// <URL:http://dotnet.mvps.org/dotnet/samples/controls/#FontList> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Thanks James and Hefried.
Best wishes Jonesgj Show quoteHide quote "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message news:eL5$nsMZGHA.4144@TK2MSFTNGP04.phx.gbl... > "Jonesgj" <a@b.com> schrieb: >> How would I return a list of available fonts. I'm writing a simple word >> processor, and have got the font dialog working, but wanted to create a >> toolbar dropdown with a list of fonts in, instead. > > \\\ > Imports System.Drawing > . > . > . > For Each fntfam As FontFamily In FontFamily.Families > Console.WriteLine(fntfam.Name) > Next fntfam > /// > > <URL:http://dotnet.mvps.org/dotnet/samples/controls/#FontList> > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/>
Getting Exception on Command Line Args, but works within IDE debug
Multi-line comments Communication between forms Datagrid binding problem Mutable Types and Read-Only Fields VS2005 - Passing NumericUpDown into a class method? Is there a way to see if a file is in use? Maximize form problem->bottom hidden by start bar ReadAllText, special characters Editing Multiple DataGridViews |
|||||||||||||||||||||||