?
Solved

Fonts

Posted on 2003-10-31
7
Medium Priority
?
273 Views
Last Modified: 2013-12-03
Hi,

A quick question. How can i get the list of all installed fonts on a machine into a listbox. Thanks
0
Comment
Question by:Prototype_T-104
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 
LVL 34

Expert Comment

by:Slick812
ID: 9661580
ListBox1.Clear;
ListBox1.Items := Screen.Fonts;
0
 
LVL 34

Expert Comment

by:Slick812
ID: 9661588
this is more better
ListBox1.Items.Assign(Screen.Fonts);
0
 

Author Comment

by:Prototype_T-104
ID: 9662929
Thanks alot,but just one more question. How to apply the selected font to a Memo...it would be inpossible to go like If ListBox1.ItemInedx = 1.... and so on, is there a quicker way?! Thanks alot Slick812!!
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 34

Expert Comment

by:Slick812
ID: 9663663
OK, I have not tested this but

Memo1.Font.Name := ListBox1.Items[ListBox1.ItemInedx];
0
 
LVL 34

Accepted Solution

by:
Slick812 earned 600 total points
ID: 9663666
Memo1.Font.Name := ListBox1.Items[ListBox1.ItemIndex];
0
 

Author Comment

by:Prototype_T-104
ID: 9664148
Thanks Slick812 you halped me very very much. Thank you!!
0
 
LVL 34

Expert Comment

by:Slick812
ID: 9664948
you are very welcome
good luck with your project
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question