Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
Exchange Links About this site Links to us 
|
Retrieve list of installed fonts
This article has not been rated yet. After reading, feel free to leave comments and rate it.
Question:
Is there an easy way to get all installed fonts in the Win95 system (for use in a font browser) without opening up the fonts directory and decoding the font names from all the font files?
Answer:
Yes, it is really simple.
See the TScreen.Fonts property. Fonts is a string list object containing the names of the system's available fonts. Use the properties and methods of string list objects to retrieve the individual values.
You can also use the Assign method to copy the list to another string list object:
 | |  | |
ListBox1.Items.Assign(Screen.Fonts); | |  | |  | You don't like the formatting? Check out SourceCoder then!
Comments:
|