Get a list of fonts
- New
- How-to
- PowerBuilder
-
Konstantin Goldobin
- PowerBuilder
- Tuesday, 2 June 2026 10:56 AM UTC
Hello,
We have a legacy application that provides some DataWindow editing capabilities. Among other things, it allows users to change the font by selecting it from a list.
Currently, the application reads the list of fonts from:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts
However, starting with some version of Windows, this registry key contains font names that cannot be used in DataWindows, e.g. "Arial (TrueType)" or "MS Sans Serif 8,10,12,14,18,24".
What is the recommended way to obtain the list of fonts that PowerBuilder displays in its font selection list, so that the returned font names can be used directly in a DataWindow?
Best regards,
Konstantin
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.