473,320 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

List fonts?

Hello

I was wondering if you guys could show me how to list all fonts using C#?
those that is supported by gdi+ that is, im using gdi+ to apply text on a
pic.

TIA
/Lasse
Nov 16 '05 #1
2 5348
You can retrieve a list of installed fonts(note though, only TrueType fonts)
like this:
System.Drawing.FontFamily [] families = new
System.Drawing.Text.InstalledFontCollection().Fami lies;

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Lasse Edsvik" <la***@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Hello

I was wondering if you guys could show me how to list all fonts using C#?
those that is supported by gdi+ that is, im using gdi+ to apply text on a
pic.

TIA
/Lasse

Nov 16 '05 #2
Hi,
Check if System.Drawing.Text.InstalledFontCollection is what you are looking
for.

"Lasse Edsvik" <la***@nospam.com> wrote in message
news:#$**************@TK2MSFTNGP14.phx.gbl...
Hello

I was wondering if you guys could show me how to list all fonts using C#?
those that is supported by gdi+ that is, im using gdi+ to apply text on a
pic.

TIA
/Lasse

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: jusovsky | last post by:
Our font management tool, Suitcase, activates fonts dynamically by creating shortcuts in the Windows font folder. Using System.Drawing.Text.InstalledFontCollection to get the list of font families...
1
by: Sachin | last post by:
How to get the list of installed fonts corresponding to any perticular charactor set? eg. if I want to get Japanese supporting font list (corresponding to char set Shift_JIS), how to do it? please...
3
by: Jonesgj | last post by:
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,...
1
by: Atul | last post by:
Hi, I have installed a truetype font (.ttf) on a linux machne (SUSE linux 10, KDE) by copying it to my .fonts folder. I can use the font in all applications like open-office and firefox browser....
2
by: Nathan Sokalski | last post by:
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 njsokalski@hotmail.com http://www.nathansokalski.com/
8
by: a8736d53 | last post by:
Is there any way to get a list of the available fonts using Firefox?
7
by: clinisbut | last post by:
Hi I'm trying to write an app and don't know how to start. I'll have a selector with a list of true type fonts. Each font will represent a different set of chars. Example *arial-font...
3
by: moondaddy | last post by:
I have a list of fonts in a combo. how to I make each item in the list use that font as it's (the item's) style similar to viewing a list of fonts in Word? <ComboBox Grid.Row="0"...
6
Ciary
by: Ciary | last post by:
hi all, i have a problem with a webservice written in VB.NET. my intensions are to display a fontlist in a website. since the code i found only works in IE (look in HTML forum for the script) i...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.