1. Sivaprakash BKR
  2. PowerBuilder
  3. Thursday, 13 January 2022 12:51 PM UTC

Hello,

PB 2019 R3, Win 10

I used to read registry (HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts) value to list of available fonts in a drop-down datawindow.  It's working fine in Windows 7, but not in Win 10.

Few of our customers used to install few fonts of their choice, which also to be listed in the dropdown datawindow.  In Win 7, all those fonts installed by users gets listed, but NOT in Windows 10.

Is there any other way(s) to list all available fonts?

Happiness Always
BKR Sivaprakash

 

Accepted Answer
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 13 January 2022 15:12 PM UTC
  2. PowerBuilder
  3. # Permalink

There is an EnumFontsW Windows API function, but it requires use of a callback function that makes it more difficult to use from PowerBuilder.

Fonts can now be installed local to an individual user in addition to system-wide, so perhaps this is what is causing your issue.

In addition to looking in the registry here:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts

you can also check here:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts

HTH, John

Comment
  1. Sivaprakash BKR
  2. Friday, 14 January 2022 07:25 AM UTC
Thanks John, It works.

  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.